aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/Runtime
diff options
context:
space:
mode:
Diffstat (limited to 'test/Runtime')
-rw-r--r--test/Runtime/POSIX/FD_Fail.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Runtime/POSIX/FD_Fail.c b/test/Runtime/POSIX/FD_Fail.c
index 8d205859..1ab0f18c 100644
--- a/test/Runtime/POSIX/FD_Fail.c
+++ b/test/Runtime/POSIX/FD_Fail.c
@@ -6,18 +6,18 @@
#include <assert.h>
int main(int argc, char** argv) {
- char buf[1024];
- FILE* f = fopen("/etc/mtab", "r");
+ char buf[1024];
+ FILE* f = fopen("/dev/zero", "rb");
assert(f);
-
+
int r = fread(buf, 1, 100, f);
- printf("fread(): %s\n",
+ printf("fread(): %s\n",
r ? "ok" : "fail");
// CHECK-DAG: fread(): ok
// CHECK-DAG: fread(): fail
r = fclose(f);
- printf("fclose(): %s\n",
+ printf("fclose(): %s\n",
r ? "ok" : "fail");
// CHECK-DAG: fclose(): ok
// CHECK-DAG: fclose(): fail