about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorDan Liew <daniel.liew@imperial.ac.uk>2013-08-23 18:12:37 +0100
committerDan Liew <daniel.liew@imperial.ac.uk>2013-08-23 18:12:37 +0100
commit40f35e8217e2d77205c013cfdd85fd5198c51b93 (patch)
tree1ce2c7c15aeddb93e4b356788bfb94f2fffc8810 /lib
parentc4147c2ad9ba1e74642e1a3de31be8f4446cc7f3 (diff)
downloadklee-40f35e8217e2d77205c013cfdd85fd5198c51b93.tar.gz
In QueryLoggingSolver call flush() on std::ofstream so that queries
get correctly logged if an assertion failure is hit later on.
Diffstat (limited to 'lib')
-rw-r--r--lib/Solver/QueryLoggingSolver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Solver/QueryLoggingSolver.cpp b/lib/Solver/QueryLoggingSolver.cpp
index e7187fc3..f2e38182 100644
--- a/lib/Solver/QueryLoggingSolver.cpp
+++ b/lib/Solver/QueryLoggingSolver.cpp
@@ -74,6 +74,7 @@ void QueryLoggingSolver::flushBuffer() {
               // we do additional check here to log only timeouts in case
               // user specified negative value for minQueryTimeToLog param
               os << logBuffer.str();              
+              os.flush();
           }                    
       }