about summary refs log tree commit diff homepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Feature/Realloc.c (renamed from test/Feature/ReallocFailure.c)4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Feature/ReallocFailure.c b/test/Feature/Realloc.c
index e5105c33..a47adad6 100644
--- a/test/Feature/ReallocFailure.c
+++ b/test/Feature/Realloc.c
@@ -1,5 +1,6 @@
 // RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t1.bc
 // RUN: %klee --exit-on-error %t1.bc
+// RUN: grep "KLEE: WARNING ONCE: Large alloc" klee-last/warnings.txt
 
 #include <assert.h>
 #include <stdlib.h>
@@ -11,8 +12,7 @@ int main() {
   p[1] = 52;
 
   int *p2 = realloc(p, 1<<30);
-  assert(p2 == 0);
-  assert(p[1] == 52);
+  assert(p2[1] == 52);
 
   return 0;
 }