Started adding support for isolated sections

This commit is contained in:
Phil Nash
2011-01-19 08:52:25 +00:00
parent 2b05dfaf05
commit ae307b000a
3 changed files with 94 additions and 29 deletions

View File

@@ -30,7 +30,8 @@ namespace Catch
~Section()
{
Hub::getResultCapture().sectionEnded( m_name, m_successes, m_failures );
if( m_sectionIncluded )
Hub::getResultCapture().sectionEnded( m_name, m_successes, m_failures );
}
// This indicates whether the section should be executed or not