From 2429db65ea2a005c76d8c4613e833d8f79cb4db1 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Thu, 5 Sep 2019 16:53:48 +0100 Subject: [test] Fix missing includes Fix multiple missing includes --- test/Runtime/POSIX/DirConsistency.c | 12 ++++++++---- test/regression/2015-08-05-invalid-fork.c | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'test') 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 +#include +#include #include #include -#include +#include #include -#include 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 -- cgit 1.4.1