From 86b784494cabd7ac8db1d02700a0d7be9ebd5351 Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Sat, 5 Sep 2020 19:59:17 +0200 Subject: address MartinNowack's remaining feedback --- test/CXX/symex/basic_c++/templates.cpp | 2 +- test/CXX/symex/libc++/simple_exception.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'test') 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 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 #include 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 -- cgit 1.4.1