ResultCapture -> RunContext

This commit is contained in:
Phil Nash committed 2015-11-19 17:45:56 +00:00
1 parent b77b45a390
commit 73968f29a5
10 files changed
+24 -24

No files matched your search

+3 -3
View File
@@ -26,7 +26,7 @@ namespace Catch {
Section::Section( SectionInfo const& info )
: m_info( info ),
m_sectionIncluded( getResultCapture().sectionStarted( m_info, m_assertions ) )
m_sectionIncluded( getCurrentRunContext().sectionStarted( m_info, m_assertions ) )
{
m_timer.start();
}
@@ -35,9 +35,9 @@ namespace Catch {
if( m_sectionIncluded ) {
SectionEndInfo endInfo( m_info, m_assertions, m_timer.getElapsedSeconds() );
if( std::uncaught_exception() )
getResultCapture().sectionEndedEarly( endInfo );
getCurrentRunContext().sectionEndedEarly( endInfo );
else
getResultCapture().sectionEnded( endInfo );
getCurrentRunContext().sectionEnded( endInfo );
}
}