1 --- src/cppunit/TestResult.cpp
2 +++ src/cppunit/TestResult.cpp
4 #include <cppunit/tools/Algorithm.h>
5 #include <cppunit/portability/Stream.h>
8 #include "DefaultProtector.h"
9 #include "ProtectorChain.h"
10 #include "ProtectorContext.h"
12 , m_protectorChain( new ProtectorChain )
15 - m_protectorChain->push( new DefaultProtector() );
16 + if (!std::getenv("CPPUNIT_PROPAGATE_EXCEPTIONS"))
17 + m_protectorChain->push( new DefaultProtector() );