diff options
| author | Martin Hořeňovský | 2017-04-09 21:20:58 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-04-09 21:20:58 +0200 |
| commit | da8786b8fdf382c27e2c96015aa6f8a47ef696ae (patch) | |
| tree | 7b97c916899a3ba32ecf398c02eda30ec36110c7 /include | |
| parent | 55773220623a5deb75bfbe8727fd3a2ce872a0c6 (diff) | |
| download | catch3-da8786b8fdf382c27e2c96015aa6f8a47ef696ae.tar.gz | |
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)
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_run_context.hpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/internal/catch_run_context.hpp b/include/internal/catch_run_context.hpp index fa326a0f..e6dbd38c 100644 --- a/include/internal/catch_run_context.hpp +++ b/include/internal/catch_run_context.hpp @@ -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(); |