about summary refs log tree commit diff homepage
path: root/test
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2019-09-05 16:53:48 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2019-11-05 14:51:18 +0000
commit2429db65ea2a005c76d8c4613e833d8f79cb4db1 (patch)
tree535d2fc8c4dc25ef794686798aeccaad96212a52 /test
parent381d767d0f0565b311bd33ffcad4ea97bd9bdcb8 (diff)
downloadklee-2429db65ea2a005c76d8c4613e833d8f79cb4db1.tar.gz
[test] Fix missing includes
Fix multiple missing includes
Diffstat (limited to 'test')
-rw-r--r--test/Runtime/POSIX/DirConsistency.c12
-rw-r--r--test/regression/2015-08-05-invalid-fork.c1
2 files changed, 9 insertions, 4 deletions
diff --git a/test/Runtime/POSIX/DirConsistency.c b/test/Runtime/POSIX/DirConsistency.c
index 688e11c1..5d7e47a1 100644
--- a/test/Runtime/POSIX/DirConsistency.c
+++ b/test/Runtime/POSIX/DirConsistency.c
@@ -1,8 +1,8 @@
-// RUN: %clang %s -emit-llvm %O0opt -c -o %t.bc
+// RUN: %clang %s -emit-llvm %O0opt -c -g -o %t.bc
 // RUN: rm -rf %t.klee-out %t.klee-out-tmp
 // RUN: %gentmp %t.klee-out-tmp
 // RUN: %klee --output-dir=%t.klee-out --run-in-dir=%t.klee-out-tmp --search=random-state --libc=uclibc --posix-runtime --exit-on-error %t.bc --sym-files 1 1 > %t1.log
-// RUN: %clang -D_FILE_OFFSET_BITS=64 %s -emit-llvm %O0opt -c -o %t.bc
+// RUN: %clang -D_FILE_OFFSET_BITS=64 %s -emit-llvm %O0opt -c -g  -o %t.bc
 // RUN: rm -rf %t.klee-out %t.klee-out-tmp
 // RUN: %gentmp %t.klee-out-tmp
 // RUN: %klee --output-dir=%t.klee-out --run-in-dir=%t.klee-out-tmp --search=random-state --libc=uclibc --posix-runtime --exit-on-error %t.bc --sym-files 1 1 > %t2.log
@@ -19,12 +19,16 @@
 // demand of /tmp.
 
 #define _LARGEFILE64_SOURCE
+
+#include "klee/klee.h"
+
 #include <assert.h>
+#include <dirent.h>
+#include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <dirent.h>
+#include <string.h>
 #include <sys/stat.h>
-#include <errno.h>
 
 int main(int argc, char **argv) {
   struct stat s;
diff --git a/test/regression/2015-08-05-invalid-fork.c b/test/regression/2015-08-05-invalid-fork.c
index 5f1b104e..a165cab2 100644
--- a/test/regression/2015-08-05-invalid-fork.c
+++ b/test/regression/2015-08-05-invalid-fork.c
@@ -2,6 +2,7 @@
    The test makes sure that the string "Should be printed once" 
    is printed a single time. 
 */
+#include "klee/klee.h"
 
 // RUN: %clang %s -emit-llvm -g %O0opt -c -o %t.bc
 // RUN: rm -rf %t.klee-out