diff options
author | Julian Büning <julian.buening@rwth-aachen.de> | 2020-09-05 19:59:17 +0200 |
---|---|---|
committer | MartinNowack <2443641+MartinNowack@users.noreply.github.com> | 2020-10-12 11:19:24 +0100 |
commit | 86b784494cabd7ac8db1d02700a0d7be9ebd5351 (patch) | |
tree | 7e96641ba23bf98e1d609bfeaaed6fa0798c59cb /test | |
parent | b157b068e27b5cdb389a63230c4d2be20f94e3f7 (diff) | |
download | klee-86b784494cabd7ac8db1d02700a0d7be9ebd5351.tar.gz |
address MartinNowack's remaining feedback
Diffstat (limited to 'test')
-rw-r--r-- | test/CXX/symex/basic_c++/templates.cpp | 2 | ||||
-rw-r--r-- | test/CXX/symex/libc++/simple_exception.cpp | 7 |
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 |