Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Initialize JunitReporter::unexpectedExceptions in constructor

This is not needed for correctness, but will prevent PVS warning
from triggering, and there is basically no performance difference.

Closes #951
Commit
106d7e2a743041075346ef11ab5347f3c86a7ee6
Author
Martin Hořeňovský ·
Parents
a53ea3072390

Files · Download .tar.gz

Changes

 include/reporters/catch_reporter_junit.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/reporters/catch_reporter_junit.hpp b/include/reporters/catch_reporter_junit.hpp
index a671c68f..28a671cd 100644
--- a/include/reporters/catch_reporter_junit.hpp
+++ b/include/reporters/catch_reporter_junit.hpp
@@ -52,6 +52,7 @@ namespace Catch {
         JunitReporter( ReporterConfig const& _config )
         :   CumulativeReporterBase( _config ),
             xml( _config.stream() ),
+            unexpectedExceptions( 0 ),
             m_okToFail( false )
         {
             m_reporterPrefs.shouldRedirectStdOut = true;