about summary refs log tree commit diff homepage
path: root/test/CXX/symex/libc++/cout.cpp
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2019-03-13 13:28:48 +0000
committerCristian Cadar <c.cadar@imperial.ac.uk>2019-03-17 15:43:21 +0000
commitae6da669e546d2ac0881da2c898c01f28b7ed7e2 (patch)
tree0cc60b6bb5f407a7641a489be640174961221707 /test/CXX/symex/libc++/cout.cpp
parent7ad366f363d23b0aea788fca69349e50180f5f78 (diff)
downloadklee-ae6da669e546d2ac0881da2c898c01f28b7ed7e2.tar.gz
Fix libc++ testcases
* remove wrapper script invocation and script
* add build instruction to test cases
* added additional checks
* add check to avoid execution of tests if KLEE is not compiled with
libc++
Diffstat (limited to 'test/CXX/symex/libc++/cout.cpp')
-rw-r--r--test/CXX/symex/libc++/cout.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CXX/symex/libc++/cout.cpp b/test/CXX/symex/libc++/cout.cpp
index 2539b67f..e8b6e52f 100644
--- a/test/CXX/symex/libc++/cout.cpp
+++ b/test/CXX/symex/libc++/cout.cpp
@@ -1,4 +1,10 @@
-// RUN: sh %S/compile_with_libcxx.sh "%llvmgxx" "%s" "%S" "%t" "%klee" "%libcxx_include"
+// REQUIRES: libcxx
+// RUN: %clangxx %s -emit-llvm %O0opt -c -std=c++11 -I "%libcxx_include" -g -nostdinc++ -o %t1.bc
+// RUN: rm -rf %t.klee-out
+// RUN: %klee --output-dir=%t.klee-out --exit-on-error --libc=uclibc --libcxx %t1.bc 2>&1 | FileCheck %s
+
+// CHECK-DAG: cout
+// CHECK-DAG: cerr
 
 #include <iostream>