mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-05 23:10:48 +00:00
Move debug break out of tests, speeds up compilation time
This is hidden behind CATCH_CONFIG_FAST_COMPILE
This commit is contained in:
parent
6da5e0862a
commit
7b13a8f85a
2 changed files with 19 additions and 1 deletions
|
@ -99,6 +99,15 @@ namespace Catch {
|
|||
}
|
||||
|
||||
void ResultBuilder::react() {
|
||||
#if defined(CATCH_CONFIG_FAST_COMPILE)
|
||||
if (m_shouldDebugBreak) {
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// To inspect the state during test, you need to go one level up the callstack
|
||||
// To go back to the test and change execution, jump over the throw statement
|
||||
///////////////////////////////////////////////////////////////////
|
||||
CATCH_BREAK_INTO_DEBUGGER();
|
||||
}
|
||||
#endif
|
||||
if( m_shouldThrow )
|
||||
throw Catch::TestFailureException();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue