From ab44fb6811f1fee96fcb66ceb448602686bc5e41 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 10 Feb 2017 11:56:46 +0000 Subject: [PATCH] The file/ line in sections is now of the section. not the test case --- include/reporters/catch_reporter_console.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/reporters/catch_reporter_console.hpp b/include/reporters/catch_reporter_console.hpp index 9303fb2e..96f18dc2 100644 --- a/include/reporters/catch_reporter_console.hpp +++ b/include/reporters/catch_reporter_console.hpp @@ -284,7 +284,7 @@ namespace Catch { printHeaderString( it->name, 2 ); } - SourceLineInfo lineInfo = m_sectionStack.front().lineInfo; + SourceLineInfo lineInfo = m_sectionStack.back().lineInfo; if( !lineInfo.empty() ){ stream << getLineOfChars<'-'>() << '\n';