From 62b7039a7bd4c24462199f7aa4ae45f73ee11506 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 31 Aug 2012 18:46:13 +0100 Subject: [PATCH] Fixed #114 (no exit code on failure) --- include/catch_runner.hpp | 2 +- single_include/catch.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/catch_runner.hpp b/include/catch_runner.hpp index 5fec833c..020e3581 100644 --- a/include/catch_runner.hpp +++ b/include/catch_runner.hpp @@ -46,7 +46,7 @@ namespace Catch { std::vector::const_iterator itEnd = filterGroups.end(); for(; it != itEnd; ++it ) { m_reporter->StartGroup( it->getName() ); - runTestsForGroup( context, *it ); + totals += runTestsForGroup( context, *it ); if( context.aborting() ) m_reporter->Aborted(); m_reporter->EndGroup( it->getName(), totals ); diff --git a/single_include/catch.hpp b/single_include/catch.hpp index 2b72dd6e..57fd0c10 100644 --- a/single_include/catch.hpp +++ b/single_include/catch.hpp @@ -1,5 +1,5 @@ /* - * Generated: 2012-08-31 18:37:21.922461 + * Generated: 2012-08-31 18:45:38.119837 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved. @@ -3538,7 +3538,7 @@ namespace Catch { std::vector::const_iterator itEnd = filterGroups.end(); for(; it != itEnd; ++it ) { m_reporter->StartGroup( it->getName() ); - runTestsForGroup( context, *it ); + totals += runTestsForGroup( context, *it ); if( context.aborting() ) m_reporter->Aborted(); m_reporter->EndGroup( it->getName(), totals );