Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2013-04-17 00:05:25 +0100
committerPhil Nash2013-04-17 00:05:25 +0100
commitbd5910ef9f758616111ba25df95ffd1c07673f5a (patch)
tree3435bf334ab5ad0b04607dfe112ef9b7516a18ac /include
parent5062d3e92bf3eb9a58b84083f1b7062fe7826591 (diff)
downloadcatch3-bd5910ef9f758616111ba25df95ffd1c07673f5a.tar.gz
Moved line info in header again
Diffstat (limited to 'include')
-rw-r--r--include/reporters/catch_reporter_console.hpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/reporters/catch_reporter_console.hpp b/include/reporters/catch_reporter_console.hpp
index 9cd25e89..741f00b5 100644
--- a/include/reporters/catch_reporter_console.hpp
+++ b/include/reporters/catch_reporter_console.hpp
@@ -284,6 +284,15 @@ namespace Catch {
}
}
+ SourceLineInfo lineInfo = currentSectionInfo
+ ? currentSectionInfo->lineInfo
+ : unusedTestCaseInfo->lineInfo;
+
+ if( !lineInfo.empty() ){
+ stream << getDashes() << "\n";
+ Colour colourGuard( Colour::FileName );
+ stream << lineInfo << "\n";
+ }
stream << getDots() << "\n" << std::endl;
}
@@ -293,10 +302,6 @@ namespace Catch {
}
void printOpenHeader( std::string const& _name, SourceLineInfo const& _lineInfo = SourceLineInfo() ) {
stream << getDashes() << "\n";
- if( !_lineInfo.empty() ){
- Colour colourGuard( Colour::FileName );
- stream << _lineInfo << "\n\n";
- }
{
Colour colourGuard( Colour::Headers );
printUserString( _name );