about summary refs log tree commit diff homepage
path: root/tools
diff options
context:
space:
mode:
authorDan Liew <daniel.liew@imperial.ac.uk>2017-03-22 13:29:33 +0000
committerDan Liew <delcypher@gmail.com>2017-03-23 15:12:20 +0000
commitbbed13271ae0efced319981ee12fc33540069adb (patch)
tree44b13e0ba8839c4aac58179997bd678348019722 /tools
parentd2f335bb6be7c6739223ea68edf453a7f8f53401 (diff)
downloadklee-bbed13271ae0efced319981ee12fc33540069adb.tar.gz
Replace `llvm:errs()` with `klee_error()` as suggested by @andreamattavelli
Diffstat (limited to 'tools')
-rw-r--r--tools/klee/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp
index 337d23a4..1ac33617 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -421,9 +421,8 @@ void KleeHandler::processTestCase(const ExecutionState &state,
                                   const char *errorMessage,
                                   const char *errorSuffix) {
   if (errorMessage && ExitOnError) {
-    llvm::errs() << "EXITING ON ERROR:\n" << errorMessage << "\n";
     m_interpreter->prepareForEarlyExit();
-    exit(1);
+    klee_error("EXITING ON ERROR:\n%s\n", errorMessage);
   }
 
   if (!NoOutput) {