summaryrefslogtreecommitdiff
path: root/src/cppunit
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2002-08-29 21:26:01 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2002-08-29 21:26:01 +0000
commit938c5ebcaed57a6652ae3f189bac55a1489ac478 (patch)
tree5e1627ef2ff8b085bcb9f04a4cadf7a7a05bbd45 /src/cppunit
parent93d20fcb3bfbfa1d20e435218b60e6ed768f57b7 (diff)
downloadcppunit-938c5ebcaed57a6652ae3f189bac55a1489ac478.tar.gz
Include/cppunit/TestResult.
include/cppunit/TestResult.h: * src/cppunit/TestResult.cpp: fixed shouldStop() bug.
Diffstat (limited to 'src/cppunit')
-rw-r--r--src/cppunit/TestResult.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cppunit/TestResult.cpp b/src/cppunit/TestResult.cpp
index a7bccc3..90658ab 100644
--- a/src/cppunit/TestResult.cpp
+++ b/src/cppunit/TestResult.cpp
@@ -13,6 +13,7 @@ CPPUNIT_NS_BEGIN
TestResult::TestResult( SynchronizationObject *syncObject )
: SynchronizedObject( syncObject )
, m_protectorChain( new ProtectorChain() )
+ , m_stop( false )
{
m_protectorChain->push( new DefaultProtector() );
}
@@ -25,6 +26,14 @@ TestResult::~TestResult()
void
+TestResult::reset()
+{
+ ExclusiveZone zone( m_syncObject );
+ m_stop = false;
+}
+
+
+void
TestResult::addError( Test *test,
Exception *e )
{