reports test case if stdout/ stderr written to, even if it succeeded

This commit is contained in:
Phil Nash 2011-03-15 18:56:11 +00:00
parent f9cc21a174
commit cc0ed3a988

View File

@ -236,10 +236,16 @@ namespace Catch
) )
{ {
if( !stdOut.empty() ) if( !stdOut.empty() )
{
StartSpansLazily();
m_config.stream() << "[stdout: " << trim( stdOut ) << "]\n"; m_config.stream() << "[stdout: " << trim( stdOut ) << "]\n";
}
if( !stdErr.empty() ) if( !stdErr.empty() )
{
StartSpansLazily();
m_config.stream() << "[stderr: " << trim( stdErr ) << "]\n"; m_config.stream() << "[stderr: " << trim( stdErr ) << "]\n";
}
if( m_testSpan.emitted ) if( m_testSpan.emitted )
{ {