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

Fix refactoring

Commit
9b884d8107b9061fc345e02bb129ebb62febc847
Author
Martin Hořeňovský ·
Parents
8a1b3b81cbd3

Files · Download .tar.gz

Changes

 src/catch2/reporters/catch_reporter_junit.cpp     | 2 +-
 src/catch2/reporters/catch_reporter_sonarqube.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/catch2/reporters/catch_reporter_junit.cpp b/src/catch2/reporters/catch_reporter_junit.cpp
index e7f17342..fc5cae34 100644
--- a/src/catch2/reporters/catch_reporter_junit.cpp
+++ b/src/catch2/reporters/catch_reporter_junit.cpp
@@ -295,7 +295,7 @@ namespace Catch {
                 }
             }
 
-            if( !result.hasMessage() )
+            if( result.hasMessage() )
                 rss << result.getMessage() << '\n';
             for( auto const& msg : stats.infoMessages )
                 if( msg.type == ResultWas::Info )
diff --git a/src/catch2/reporters/catch_reporter_sonarqube.cpp b/src/catch2/reporters/catch_reporter_sonarqube.cpp
index dc3f8c82..9c391b1f 100644
--- a/src/catch2/reporters/catch_reporter_sonarqube.cpp
+++ b/src/catch2/reporters/catch_reporter_sonarqube.cpp
@@ -147,7 +147,7 @@ namespace Catch {
                 }
             }
 
-            if (!result.hasMessage())
+            if (result.hasMessage())
                 textRss << result.getMessage() << '\n';
 
             for (auto const& msg : stats.infoMessages)