OBS-URL: https://build.opensuse.org/package/show/devel:tools:statica/klee?expand=0&rev=14
30 lines
798 B
Diff
30 lines
798 B
Diff
From: Jiri Slaby <jirislaby@gmail.com>
|
|
Date: Fri, 17 Mar 2017 13:29:08 +0100
|
|
Subject: test: POSIX, stop FD_Fail to fail
|
|
Patch-mainline: no
|
|
|
|
In our build environments, /etc/fstab is an empty file. Use /etc/mtab,
|
|
which should not be empty anywhere, hopefully.
|
|
|
|
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
|
|
---
|
|
test/Runtime/POSIX/FD_Fail.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/test/Runtime/POSIX/FD_Fail.c b/test/Runtime/POSIX/FD_Fail.c
|
|
index 186ada51cda0..2ee1a1a260d6 100644
|
|
--- a/test/Runtime/POSIX/FD_Fail.c
|
|
+++ b/test/Runtime/POSIX/FD_Fail.c
|
|
@@ -11,7 +11,7 @@
|
|
|
|
int main(int argc, char** argv) {
|
|
char buf[1024];
|
|
- FILE* f = fopen("/etc/fstab", "r");
|
|
+ FILE* f = fopen("/etc/mtab", "r");
|
|
assert(f);
|
|
|
|
int r = fread(buf, 1, 100, f);
|
|
--
|
|
2.12.0
|
|
|