1
0
Fork 0
libreoffice/external/cppunit/propagate-exceptions.patch.0
Daniel Baumann 8e63e14cf6
Adding upstream version 4:25.2.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 16:20:04 +02:00

20 lines
549 B
Text

--- src/cppunit/TestResult.cpp
+++ src/cppunit/TestResult.cpp
@@ -5,6 +5,7 @@
#include <cppunit/tools/Algorithm.h>
#include <cppunit/portability/Stream.h>
#include <algorithm>
+#include <cstdlib>
#include "DefaultProtector.h"
#include "ProtectorChain.h"
#include "ProtectorContext.h"
@@ -18,7 +19,8 @@
, m_protectorChain( new ProtectorChain )
, m_stop( false )
{
- m_protectorChain->push( new DefaultProtector() );
+ if (!std::getenv("CPPUNIT_PROPAGATE_EXCEPTIONS"))
+ m_protectorChain->push( new DefaultProtector() );
}