diff options
| author | Martin Hořeňovský | 2021-11-14 11:24:33 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-11-14 11:41:25 +0100 |
| commit | 5f38cc39fac811b7d08d48bfc8b94599c2fd720b (patch) | |
| tree | a144ea350deb8f697b49c5d6259e6284c137a530 /src | |
| parent | b892ab133c32d7fd82290467b46ba3c4a32527ae (diff) | |
| download | catch3-5f38cc39fac811b7d08d48bfc8b94599c2fd720b.tar.gz | |
JUnit/SonarQube reporters use base's stream member
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/reporters/catch_reporter_junit.cpp | 2 | ||||
| -rw-r--r-- | src/catch2/reporters/catch_reporter_sonarqube.hpp | 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 30df87a9..e12fc3ea 100644 --- a/src/catch2/reporters/catch_reporter_junit.cpp +++ b/src/catch2/reporters/catch_reporter_junit.cpp @@ -70,7 +70,7 @@ namespace Catch { JunitReporter::JunitReporter( ReporterConfig const& _config ) : CumulativeReporterBase( _config ), - xml( _config.stream() ) + xml( m_stream ) { m_preferences.shouldRedirectStdOut = true; m_preferences.shouldReportAllAssertions = true; diff --git a/src/catch2/reporters/catch_reporter_sonarqube.hpp b/src/catch2/reporters/catch_reporter_sonarqube.hpp index de3d08d4..ec22ecfa 100644 --- a/src/catch2/reporters/catch_reporter_sonarqube.hpp +++ b/src/catch2/reporters/catch_reporter_sonarqube.hpp @@ -18,7 +18,7 @@ namespace Catch { SonarQubeReporter(ReporterConfig const& config) : CumulativeReporterBase(config) - , xml(config.stream()) { + , xml(m_stream) { m_preferences.shouldRedirectStdOut = true; m_preferences.shouldReportAllAssertions = true; m_shouldStoreSuccesfulAssertions = false; |