Unchecked exceptions don't report previous assertions message (only its line number)

This commit is contained in:
Phil Nash 2012-11-17 17:22:37 +00:00
parent 3e2e318eeb
commit d0cc33f284
3 changed files with 36 additions and 21 deletions

View file

@ -161,6 +161,9 @@ namespace Catch {
m_assertionResults.push_back( result );
else
m_reporter->Result( result );
// Reset AssertionInfo
m_lastAssertionInfo = AssertionInfo( "", m_lastAssertionInfo.lineInfo, "{Unknown expression after this line}" , m_lastAssertionInfo.resultDisposition );
}
virtual bool sectionStarted (