forked from catchorg/Catch2
reports test case if stdout/ stderr written to, even if it succeeded
This commit is contained in:
@@ -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 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user