Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-03-11 23:40:22 +0100
committerMartin Hořeňovský2023-03-11 23:59:47 +0100
commit9b884d8107b9061fc345e02bb129ebb62febc847 (patch)
tree3790443266766b5793aa1ce052cb30fc24f9c84e /src/catch2
parent8a1b3b81cbd3551cad08048cf66ebd33ec94087f (diff)
downloadcatch3-9b884d8107b9061fc345e02bb129ebb62febc847.tar.gz
Fix refactoring
Diffstat (limited to 'src/catch2')
-rw-r--r--src/catch2/reporters/catch_reporter_junit.cpp2
-rw-r--r--src/catch2/reporters/catch_reporter_sonarqube.cpp2
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)