diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-04-08 09:42:51 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-04-08 09:31:33 +0000 |
commit | 98fb412e6e735184927f6d23e392566576904633 (patch) | |
tree | 61d09c935e67056306dfcc68723df8b6ad418f6c /src/plugins/projectexplorer/outputparser_test.cpp | |
parent | ad1f79075dec8ed6b2e9da7eb250e8865214a88e (diff) |
IOutputParser: Replace std{Out,Err} with a single parameterized function
Another step towards parser/formatter unification.
Task-number: QTCREATORBUG-22665
Change-Id: I6de86b3aee2c54585cdd4b06d21b0ea67300aeac
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/outputparser_test.cpp')
-rw-r--r-- | src/plugins/projectexplorer/outputparser_test.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/plugins/projectexplorer/outputparser_test.cpp b/src/plugins/projectexplorer/outputparser_test.cpp index 9dfa5e4826..8a2bebf09d 100644 --- a/src/plugins/projectexplorer/outputparser_test.cpp +++ b/src/plugins/projectexplorer/outputparser_test.cpp @@ -103,16 +103,13 @@ TestTerminator::TestTerminator(OutputParserTester *t) : m_tester(t) { } -void TestTerminator::stdOutput(const QString &line) +void TestTerminator::handleLine(const QString &line, Utils::OutputFormat type) { QVERIFY(line.endsWith('\n')); - m_tester->m_receivedStdOutChildLine.append(line); -} - -void TestTerminator::stdError(const QString &line) -{ - QVERIFY(line.endsWith('\n')); - m_tester->m_receivedStdErrChildLine.append(line); + if (type == Utils::StdOutFormat) + m_tester->m_receivedStdOutChildLine.append(line); + else + m_tester->m_receivedStdErrChildLine.append(line); } } // namespace ProjectExplorer |