From b1d9fa82b68240ea4bc4365c295abf3a397f4d68 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Tue, 19 Apr 2011 18:53:24 +0100 Subject: [PATCH] Fixed bug in xml reporter that didn't accumulate success status correctly --- catch_reporter_xml.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catch_reporter_xml.hpp b/catch_reporter_xml.hpp index 8b26f169..b54e39b6 100644 --- a/catch_reporter_xml.hpp +++ b/catch_reporter_xml.hpp @@ -128,7 +128,7 @@ namespace Catch .writeText( resultInfo.getExpression() ); m_xml.scopedElement( "Expanded" ) .writeText( resultInfo.getExpandedExpression() ); - m_currentTestSuccess |= resultInfo.ok(); + m_currentTestSuccess &= resultInfo.ok(); } switch( resultInfo.getResultType() )