mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
reports test case if stdout/ stderr written to, even if it succeeded
This commit is contained in:
parent
f9cc21a174
commit
cc0ed3a988
@ -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 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user