Skip to content

Commit

Permalink
Unexpected exception are no longer ignored by default
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
horenmar committed Apr 9, 2017
1 parent 5577322 commit da8786b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/internal/catch_run_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit da8786b

Please sign in to comment.