Fixed bug in xml reporter that didn't accumulate success status correctly

This commit is contained in:
Phil Nash 2011-04-19 18:53:24 +01:00
parent 06134ba167
commit b1d9fa82b6

View File

@ -128,7 +128,7 @@ namespace Catch
.writeText( resultInfo.getExpression() ); .writeText( resultInfo.getExpression() );
m_xml.scopedElement( "Expanded" ) m_xml.scopedElement( "Expanded" )
.writeText( resultInfo.getExpandedExpression() ); .writeText( resultInfo.getExpandedExpression() );
m_currentTestSuccess |= resultInfo.ok(); m_currentTestSuccess &= resultInfo.ok();
} }
switch( resultInfo.getResultType() ) switch( resultInfo.getResultType() )