Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_run_context.cpp
diff options
context:
space:
mode:
authorPhil Nash2017-11-23 19:14:26 +0000
committerPhil Nash2017-11-23 19:14:26 +0000
commit9329d97a43b36aa2499ac1bc1e7ed78815ca2584 (patch)
tree24bbdef4560291e92f09f56581c5b156c94ba3ad /include/internal/catch_run_context.cpp
parent8141a7836fb22d1c19f738549e404263c5639f6c (diff)
downloadcatch3-9329d97a43b36aa2499ac1bc1e7ed78815ca2584.tar.gz
Always debug-break non-inline
Diffstat (limited to 'include/internal/catch_run_context.cpp')
-rw-r--r--include/internal/catch_run_context.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/internal/catch_run_context.cpp b/include/internal/catch_run_context.cpp
index d6ab1576..1122885e 100644
--- a/include/internal/catch_run_context.cpp
+++ b/include/internal/catch_run_context.cpp
@@ -297,11 +297,13 @@ namespace Catch {
// Under CATCH_CONFIG_FAST_COMPILE, unexpected exceptions under REQUIRE assertions
// are reported without translation at the point of origin.
if (m_shouldReportUnexpected) {
- AssertionHandler
+ AssertionHandler handler
( m_lastAssertionInfo.macroName,
m_lastAssertionInfo.lineInfo,
m_lastAssertionInfo.capturedExpression,
- m_lastAssertionInfo.resultDisposition ).useActiveException();
+ m_lastAssertionInfo.resultDisposition );
+ handler.useActiveException();
+ handler.setCompleted();
}
}
m_testCaseTracker->close();