From e2e303fc1c7f3df20c8d910385d4628905904b37 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Tue, 24 Nov 2009 09:01:11 +0000 Subject: Flush stdout & stderr in TestResult destructor to avoid message loss (bug #2832029) --- src/cppunit/TestResult.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cppunit/TestResult.cpp') diff --git a/src/cppunit/TestResult.cpp b/src/cppunit/TestResult.cpp index 6be19f1..4b02c30 100644 --- a/src/cppunit/TestResult.cpp +++ b/src/cppunit/TestResult.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include "DefaultProtector.h" #include "ProtectorChain.h" @@ -22,6 +23,8 @@ TestResult::TestResult( SynchronizationObject *syncObject ) TestResult::~TestResult() { + stdCOut().flush(); + stdCErr().flush(); delete m_protectorChain; } -- cgit v1.2.1