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
Use hasMessage() instead of getMessage().empty()
- Commit
3a1ef1409750ac2840d235409f539a73a886937b- Author
- Martin Hořeňovský ·
- Parents
13fae1e2ff99
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 9a9b94af..e7f17342 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.getMessage().empty() ) + 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 dd002b61..dc3f8c82 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.getMessage().empty()) + if (!result.hasMessage()) textRss << result.getMessage() << '\n'; for (auto const& msg : stats.infoMessages)