Fixed up CATCH_CONFIG_FAST_COMPILE for REQUIREs

Unexpected exceptions no longer cause abort and there should be no more
potential for false negatives.

The trade-off now is that exceptions are no longer translated.
This commit is contained in:
Martin Hořeňovský
2017-04-03 11:36:55 +02:00
parent 3a3f152979
commit 95d85fb186
3 changed files with 19 additions and 3 deletions

View File

@@ -37,7 +37,9 @@ namespace Catch {
ResultBuilder::~ResultBuilder() {
#if defined(CATCH_CONFIG_FAST_COMPILE)
if ( m_guardException ) {
useActiveException( m_assertionInfo.resultDisposition );
m_stream.oss << "Exception translation was disabled by CATCH_CONFIG_FAST_COMPILE";
captureResult( ResultWas::ThrewException );
getCurrentContext().getResultCapture()->exceptionEarlyReported();
}
#endif
}