about summary refs log tree commit diff homepage
path: root/test/Runtime
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2018-09-19 14:08:45 +0100
committerMartinNowack <martin.nowack@gmail.com>2018-09-20 21:49:58 +0100
commit9ddcb08d0369442b84b14a9a95da0c2efc76df20 (patch)
tree1698f57ef5462421124cb6ff40fd0a2084bfabfe /test/Runtime
parent78e618726dfc43376b16d07985f7a8951923d389 (diff)
downloadklee-9ddcb08d0369442b84b14a9a95da0c2efc76df20.tar.gz
Removed unused --sym-files 0 0 argument from FD_Fail test and rewrote the test to use FileCheck instead of grep
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 2ee1a1a2..018f43f8 100644
--- a/test/Runtime/POSIX/FD_Fail.c
+++ b/test/Runtime/POSIX/FD_Fail.c
@@ -1,10 +1,6 @@
 // RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t1.bc
 // RUN: rm -rf %t.klee-out
-// RUN: %klee --output-dir=%t.klee-out --libc=uclibc --posix-runtime %t1.bc --sym-files 0 0 --max-fail 1 > %t.log
-// RUN: grep -q "fread(): ok" %t.log
-// RUN: grep -q "fread(): fail" %t.log
-// RUN: grep -q "fclose(): ok" %t.log
-// RUN: grep -q "fclose(): fail" %t.log
+// RUN: %klee --output-dir=%t.klee-out --libc=uclibc --posix-runtime %t1.bc --max-fail 1 | FileCheck %s
 
 #include <stdio.h>
 #include <assert.h>
@@ -17,10 +13,14 @@ int main(int argc, char** argv) {
   int r = fread(buf, 1, 100, f);
   printf("fread(): %s\n", 
          r ? "ok" : "fail");
+  // CHECK-DAG: fread(): ok
+  // CHECK-DAG: fread(): fail
 
   r = fclose(f);
   printf("fclose(): %s\n", 
          r ? "ok" : "fail");
+  // CHECK-DAG: fclose(): ok
+  // CHECK-DAG: fclose(): fail
 
   return 0;
 }