summaryrefslogtreecommitdiff
path: root/src/cppunit/TestResult.cpp
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2009-11-24 09:01:11 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2009-11-24 09:01:11 +0000
commite2e303fc1c7f3df20c8d910385d4628905904b37 (patch)
treed5fa3c1acbe122327e546f45c0480a18a34f1e6d /src/cppunit/TestResult.cpp
parente629238d569f6fcf3477537a60a8f3db1fd1f962 (diff)
downloadcppunit-e2e303fc1c7f3df20c8d910385d4628905904b37.tar.gz
Flush stdout & stderr in TestResult destructor to avoid message loss (bug #2832029)
Diffstat (limited to 'src/cppunit/TestResult.cpp')
-rw-r--r--src/cppunit/TestResult.cpp3
1 files changed, 3 insertions, 0 deletions
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 <cppunit/TestListener.h>
#include <cppunit/TestResult.h>
#include <cppunit/tools/Algorithm.h>
+#include <cppunit/portability/Stream.h>
#include <algorithm>
#include "DefaultProtector.h"
#include "ProtectorChain.h"
@@ -22,6 +23,8 @@ TestResult::TestResult( SynchronizationObject *syncObject )
TestResult::~TestResult()
{
+ stdCOut().flush();
+ stdCErr().flush();
delete m_protectorChain;
}