console reporter: got rid of spurious blank lines

This commit is contained in:
Phil Nash
2013-01-16 09:30:41 +00:00
parent f8ba2277d3
commit 5a60ce2117
2 changed files with 90 additions and 232 deletions

View File

@@ -213,18 +213,14 @@ namespace Catch {
void lazyPrint() {
bool needsNewline = unusedTestCaseInfo || currentSectionInfo;
if( testRunInfo )
lazyPrintRunInfo();
if( unusedGroupInfo )
lazyPrintGroupInfo();
if( unusedTestCaseInfo )
lazyPrintTestCaseInfo();
if( currentSectionInfo)
if( unusedSectionInfo)
lazyPrintSectionInfo();
if( needsNewline )
stream << "\n";
m_atLeastOneTestCasePrinted = true;
}
@@ -250,7 +246,7 @@ namespace Catch {
if( !currentSectionInfo ) {
stream << getDashes() << "\n"
<< "Test case" << ": '" << unusedTestCaseInfo->name << "'\n";
stream << getDashes() << std::endl;
stream << getDashes() << "\n" << std::endl;
unusedTestCaseInfo.reset();
}
}
@@ -286,7 +282,7 @@ namespace Catch {
stream << inset;
stream << (*it)->name << "\n";
}
stream << getDashes() << std::endl;
stream << getDashes() << "\n" << std::endl;
unusedSectionInfo.reset();
}
}