Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix SEGFAULT during construction of Session
coloured output tried to write startup exceptions
to stream which was not initialized
  • Loading branch information
JoeyGrajciar committed May 15, 2019
1 parent f1e14a1 commit e680c4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/internal/catch_session.cpp
Expand Up @@ -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';
Expand Down

0 comments on commit e680c4b

Please sign in to comment.