catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
fix SEGFAULT during construction of Session
- Commit
e680c4b9fb1d699bfad239e42ce7643d7cf00371- Author
- Jozef Grajciar ·
- Parents
f1e14a1168fc
Changes
include/internal/catch_session.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/internal/catch_session.cpp b/include/internal/catch_session.cpp index 38b74ef7..5aee5d99 100644 --- a/include/internal/catch_session.cpp +++ b/include/internal/catch_session.cpp @@ -134,6 +134,9 @@ namespace Catch { #if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS) const auto& exceptions = getRegistryHub().getStartupExceptionRegistry().getExceptions(); if ( !exceptions.empty() ) { + config(); + getCurrentMutableContext().setConfig(m_config); + m_startupExceptions = true; Colour colourGuard( Colour::Red ); Catch::cerr() << "Errors occurred during startup!" << '\n';