about summary refs log tree commit diff homepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/CXX/symex/basic_c++/templates.cpp2
-rw-r--r--test/CXX/symex/libc++/simple_exception.cpp7
2 files changed, 6 insertions, 3 deletions
diff --git a/test/CXX/symex/basic_c++/templates.cpp b/test/CXX/symex/basic_c++/templates.cpp
index c5abb983..b248af42 100644
--- a/test/CXX/symex/basic_c++/templates.cpp
+++ b/test/CXX/symex/basic_c++/templates.cpp
@@ -1,7 +1,7 @@
 // REQUIRES: uclibc
 // RUN: %clangxx %s -emit-llvm %O0opt -c -o %t.bc
 // RUN: rm -rf %t.klee-out
-// RUN: %klee --output-dir=%t.klee-out --libc=uclibc %t.bc 2>&1
+// RUN: %klee --output-dir=%t.klee-out --exit-on-error --libc=uclibc %t.bc 2>&1
 
 #include <cassert>
 
diff --git a/test/CXX/symex/libc++/simple_exception.cpp b/test/CXX/symex/libc++/simple_exception.cpp
index 4d7d2c92..0196e1eb 100644
--- a/test/CXX/symex/libc++/simple_exception.cpp
+++ b/test/CXX/symex/libc++/simple_exception.cpp
@@ -6,15 +6,18 @@
 // RUN: rm -rf %t.klee-out
 // RUN: %klee --output-dir=%t.klee-out --libc=uclibc --libcxx %t1.bc 2>&1 | FileCheck %s
 
-// CHECK: KLEE: done: completed paths = 1
-
 #include "klee/klee.h"
 
+#include <cstdio>
 #include <stdexcept>
 
 int main(int argc, char **args) {
   try {
     throw std::runtime_error("foo");
   } catch (const std::runtime_error &ex) {
+    std::puts(ex.what());
+    // CHECK: foo
   }
 }
+
+// CHECK: KLEE: done: completed paths = 1