Move captured output into TestCaseStats when sending testCaseEnded

This commit is contained in:
Martin Hořeňovský
2023-02-20 14:48:39 +01:00
parent fed1436246
commit 00f259aeb2
3 changed files with 11 additions and 14 deletions
@@ -79,13 +79,13 @@ namespace Catch {
TestCaseStats::TestCaseStats( TestCaseInfo const& _testInfo,
Totals const& _totals,
std::string const& _stdOut,
std::string const& _stdErr,
std::string&& _stdOut,
std::string&& _stdErr,
bool _aborting )
: testInfo( &_testInfo ),
totals( _totals ),
stdOut( _stdOut ),
stdErr( _stdErr ),
stdOut( CATCH_MOVE(_stdOut) ),
stdErr( CATCH_MOVE(_stdErr) ),
aborting( _aborting )
{}