Skip to content

Commit 3ad9bcc

Browse files
committed
testrunner: do not mix redirect and ErrorLogger output
1 parent 3272a2b commit 3ad9bcc

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

test/fixture.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,7 @@ class TestFixture : public ErrorLogger {
248248
static std::size_t runTests(const options& args);
249249
};
250250

251-
// TODO: fix these
252-
// NOLINTNEXTLINE(readability-redundant-declaration)
253251
extern std::ostringstream errout;
254-
// NOLINTNEXTLINE(readability-redundant-declaration)
255252
extern std::ostringstream output;
256253

257254
// TODO: most asserts do not actually assert i.e. do not return

test/redirect.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
#include <sstream>
2222
#include <string>
2323

24-
// NOLINTNEXTLINE(readability-redundant-declaration) - TODO: fix this
25-
extern std::ostringstream errout;
26-
// NOLINTNEXTLINE(readability-redundant-declaration) - TODO: fix this
27-
extern std::ostringstream output;
2824
/**
2925
* @brief Utility class for capturing cout and cerr to ostringstream buffers
3026
* for later use. Uses RAII to stop redirection when the object goes out of
@@ -50,9 +46,6 @@ class RedirectOutputError {
5046
~RedirectOutputError() {
5147
std::cout.rdbuf(_oldCout); // restore cout's original streambuf
5248
std::cerr.rdbuf(_oldCerr); // restore cerrs's original streambuf
53-
54-
errout << _err.str();
55-
output << _out.str();
5649
}
5750

5851
/** Return what would be printed to cout. See also clearOutput() */

0 commit comments

Comments
 (0)