Fixed sticky INFO (which persisted across TEST_CASEs) from #152 and generated build 18

This commit is contained in:
Phil Nash 2013-02-04 00:05:16 +00:00
parent fb944f2b6b
commit d768b1b7f9
6 changed files with 65 additions and 11 deletions

View file

@ -267,6 +267,7 @@ namespace Catch {
try {
m_lastAssertionInfo = AssertionInfo( "TEST_CASE", m_runningTest->getTestCase().getTestCaseInfo().lineInfo, "", ResultDisposition::Normal );
m_runningTest->reset();
if( m_reporter->getPreferences().shouldRedirectStdOut ) {
StreamRedirect coutRedir( std::cout, redirectedCout );
StreamRedirect cerrRedir( std::cerr, redirectedCerr );
@ -285,6 +286,7 @@ namespace Catch {
exResult << translateActiveException();
actOnCurrentResult( exResult.buildResult( m_lastAssertionInfo ) );
}
m_messages.clear();
}
private: