Manual cherry-pick from #1111

This hsould merge still-valid piece of #1111 into master.
This commit is contained in:
Martin Hořeňovský
2017-12-09 20:17:47 +01:00
parent 0cf05d54a6
commit a7a9ee5552
8 changed files with 13 additions and 15 deletions

View File

@@ -52,7 +52,12 @@ namespace Catch {
SourceLineInfo const& lineInfo,
StringRef capturedExpression,
ResultDisposition::Flags resultDisposition );
~AssertionHandler();
~AssertionHandler() {
if ( !m_completed ) {
m_resultCapture.handleIncomplete( m_assertionInfo )
}
}
template<typename T>
void handleExpr( ExprLhs<T> const& expr ) {