Fixed SUCCEED so it logs message in basic reporter

Reverted previous change so that tests with no assertions but INFO macros now warn again (but an explicit SUCCEED does not)
This commit is contained in:
Phil Nash 2012-11-21 08:49:20 +00:00
parent 5d248c98bf
commit deb3e9d4c4
4 changed files with 131 additions and 44 deletions

View file

@ -243,6 +243,11 @@ namespace Catch {
}
}
}
if( assertionResult.hasMessage() ) {
m_config.stream << "\n";
TextColour colour( TextColour::ReconstructedExpression );
streamVariableLengthText( "with message", assertionResult.getMessage() );
}
break;
}