Skip to content
Permalink
Browse files

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 e680c4b9fb1d699bfad239e42ce7643d7cf00371
Showing with 3 additions and 0 deletions.
  1. +3 −0 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';

0 comments on commit e680c4b

Please sign in to comment.
You can’t perform that action at this time.