diff options
| author | Martin Hořeňovský | 2023-03-11 23:40:22 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-03-11 23:59:47 +0100 |
| commit | 9b884d8107b9061fc345e02bb129ebb62febc847 (patch) | |
| tree | 3790443266766b5793aa1ce052cb30fc24f9c84e /src/catch2 | |
| parent | 8a1b3b81cbd3551cad08048cf66ebd33ec94087f (diff) | |
| download | catch3-9b884d8107b9061fc345e02bb129ebb62febc847.tar.gz | |
Fix refactoring
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/reporters/catch_reporter_junit.cpp | 2 | ||||
| -rw-r--r-- | 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) |