mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-04 22:19:34 +01:00
Don't redirect stout for basic reporter
This commit is contained in:
@@ -585,9 +585,16 @@ namespace Catch
|
||||
try
|
||||
{
|
||||
m_runningTest->reset();
|
||||
StreamRedirect coutRedir( std::cout, redirectedCout );
|
||||
StreamRedirect cerrRedir( std::cerr, redirectedCerr );
|
||||
m_runningTest->getTestCaseInfo().invoke();
|
||||
if( m_reporter->shouldRedirectStdout() )
|
||||
{
|
||||
StreamRedirect coutRedir( std::cout, redirectedCout );
|
||||
StreamRedirect cerrRedir( std::cerr, redirectedCerr );
|
||||
m_runningTest->getTestCaseInfo().invoke();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_runningTest->getTestCaseInfo().invoke();
|
||||
}
|
||||
m_runningTest->ranToCompletion();
|
||||
}
|
||||
catch( TestFailureException& )
|
||||
|
||||
Reference in New Issue
Block a user