From cc0ed3a988a8aa95a1a4169aaf968bc8f4afb71b Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Tue, 15 Mar 2011 18:56:11 +0000 Subject: [PATCH] reports test case if stdout/ stderr written to, even if it succeeded --- catch_reporter_basic.hpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 ) {