Section no longer relies on copy-elision for correctness

- should address #293
- *may* address #271
This commit is contained in:
Phil Nash 2014-07-09 07:39:57 +01:00
parent a469d9bc0f
commit 23181eeef0
7 changed files with 36 additions and 29 deletions

View file

@ -219,7 +219,7 @@ namespace Catch {
void runCurrentTest( std::string& redirectedCout, std::string& redirectedCerr ) {
TestCaseInfo const& testCaseInfo = m_activeTestCase->getTestCaseInfo();
SectionInfo testCaseSection( testCaseInfo.name, testCaseInfo.description, testCaseInfo.lineInfo );
SectionInfo testCaseSection( testCaseInfo.lineInfo, testCaseInfo.name, testCaseInfo.description );
m_reporter->sectionStarting( testCaseSection );
Counts prevAssertions = m_totals.assertions;
double duration = 0;