From 0d4609f5360d4902ad0844b0f5ce41a5b2035c32 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 14 Dec 2012 18:28:03 +0000 Subject: [PATCH] Clear state in AccumulatingReporter --- include/internal/catch_interfaces_reporter.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/internal/catch_interfaces_reporter.h b/include/internal/catch_interfaces_reporter.h index efde354b..557aa6b9 100644 --- a/include/internal/catch_interfaces_reporter.h +++ b/include/internal/catch_interfaces_reporter.h @@ -232,6 +232,11 @@ namespace Catch unusedGroupInfo.reset(); } virtual void testRunEnded( Ptr const& /* _testRunStats */ ) { + currentSectionInfo.reset(); + unusedSectionInfo.reset(); + unusedTestCaseInfo.reset(); + unusedGroupInfo.reset(); + testRunInfo.reset(); } ReporterConfig m_config;