diff --git a/catch_reporter_basic.hpp b/catch_reporter_basic.hpp index add09b60..4cf04200 100644 --- a/catch_reporter_basic.hpp +++ b/catch_reporter_basic.hpp @@ -236,10 +236,16 @@ namespace Catch ) { if( !stdOut.empty() ) + { + StartSpansLazily(); m_config.stream() << "[stdout: " << trim( stdOut ) << "]\n"; + } if( !stdErr.empty() ) + { + StartSpansLazily(); m_config.stream() << "[stderr: " << trim( stdErr ) << "]\n"; + } if( m_testSpan.emitted ) {