about summary refs log tree commit diff homepage
path: root/test/Feature
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2014-02-24 19:11:55 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2014-02-24 19:11:55 +0000
commit2f9c04b09ac8dd81c85f46d3fd89903aafed7370 (patch)
treecef4dcae0c0624d85af9528198e64c0a210c56ca /test/Feature
parent78f393d28eb243aa00e003feeee928091d5f174f (diff)
downloadklee-2f9c04b09ac8dd81c85f46d3fd89903aafed7370.tar.gz
Improved DumpStatesOnHalt.c to make sure there is always more than one instruction in main().
Diffstat (limited to 'test/Feature')
-rw-r--r--test/Feature/DumpStatesOnHalt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Feature/DumpStatesOnHalt.c b/test/Feature/DumpStatesOnHalt.c
index c65d5568..993fdb6a 100644
--- a/test/Feature/DumpStatesOnHalt.c
+++ b/test/Feature/DumpStatesOnHalt.c
@@ -2,8 +2,10 @@
 // RUN: %klee --stop-after-n-instructions=1 --dump-states-on-halt=true %t1.bc 2>&1 | FileCheck %s
 // RUN: test -f %T/klee-last/test000001.ktest
 
-int main() {
-  int x = 10;
+int main(int argc, char** argv) {
+  int x = 1;
+  if (argc == 1)
+    x = 0;
   return x;
 }
 // CHECK: halting execution, dumping remaining states