Unexpected exception are no longer ignored by default

What an embarassing bug, I'll have to look into why it wasn't caught by
any of Catch's self-tests.

Fixes #885 and closes #887 (duplicate)
This commit is contained in:
Martin Hořeňovský 2017-04-09 21:20:58 +02:00
parent 5577322062
commit da8786b8fd
1 changed files with 0 additions and 2 deletions

View File

@ -301,11 +301,9 @@ namespace Catch {
catch(...) {
// Under CATCH_CONFIG_FAST_COMPILE, unexpected exceptions under REQUIRE assertions
// are reported without translation at the point of origin.
#ifdef CATCH_CONFIG_FAST_COMPILE
if (m_shouldReportUnexpected) {
makeUnexpectedResultBuilder().useActiveException();
}
#endif
}
m_testCaseTracker->close();
handleUnfinishedSections();