The file/ line in sections is now of the section. not the test case

This commit is contained in:
Phil Nash 2017-02-10 11:56:46 +00:00
parent d6b8ac5a4e
commit ab44fb6811

View File

@ -284,7 +284,7 @@ namespace Catch {
printHeaderString( it->name, 2 ); printHeaderString( it->name, 2 );
} }
SourceLineInfo lineInfo = m_sectionStack.front().lineInfo; SourceLineInfo lineInfo = m_sectionStack.back().lineInfo;
if( !lineInfo.empty() ){ if( !lineInfo.empty() ){
stream << getLineOfChars<'-'>() << '\n'; stream << getLineOfChars<'-'>() << '\n';