diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Feature/EntryPoint.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Feature/EntryPoint.c b/test/Feature/EntryPoint.c index 82659733..8a10d36f 100644 --- a/test/Feature/EntryPoint.c +++ b/test/Feature/EntryPoint.c @@ -1,11 +1,17 @@ // RUN: %clang -emit-llvm -g -c %s -o %t.bc // RUN: rm -rf %t.klee-out -// RUN: %klee --output-dir=%t.klee-out --entry-point=other_main %t.bc > %t.log -// RUN: grep "Hello World" %t.log +// RUN: %klee --output-dir=%t.klee-out --entry-point=other_main %t.bc | FileCheck -check-prefix=CHECK-OTHER_MAIN %s + +// RUN: rm -rf %t.klee-out +// RUN: %klee --output-dir=%t.klee-out --entry-point="" %t.bc 2>%t.stderr.log || echo "Exit status must be 0" +// RUN: FileCheck -check-prefix=CHECK-EMPTY --input-file=%t.stderr.log %s #include <stdio.h> int other_main() { printf("Hello World\n"); + // CHECK-OTHER_MAIN: Hello World return 0; } + +// CHECK-EMPTY: KLEE: ERROR: entry-point cannot be empty |