diff options
author | Claus Steuer <claus755@gmail.com> | 2017-09-09 23:33:02 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2017-09-12 05:37:12 +0000 |
commit | d85e9bbe2f8bf3d6a19e558c4e34e08ba9489eed (patch) | |
tree | f0a9a4b5a54f8533cf62a056c6cc07eb4b719e1e | |
parent | 43c0d896a23e580a76e433831a3c3b0379ad5e24 (diff) | |
download | qt-creator-d85e9bbe2f8bf3d6a19e558c4e34e08ba9489eed.tar.gz |
AutoTest: Fix test result output when debugging tests
When executing tests in debug mode the results are not displayed
as usual in the test result pane. In debug mode a newline character
is added to each line before passing it to the outputreader. The regular
expressions used in the GTest- and QtTestOutputReader do not match
because of the newline character.
Change-Id: Ia8051497097c950b5cf2d64cd4de0cb425802c50
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r-- | src/plugins/autotest/testrunner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/autotest/testrunner.cpp b/src/plugins/autotest/testrunner.cpp index 7ab479dc0e..dccaebaaf1 100644 --- a/src/plugins/autotest/testrunner.cpp +++ b/src/plugins/autotest/testrunner.cpp @@ -295,7 +295,7 @@ static void processOutput(TestOutputReader *outputreader, const QString &msg, break; } for (const QString &line : msg.mid(start).split('\n')) - outputreader->processOutput(line.toUtf8() + '\n'); + outputreader->processOutput(line.toUtf8()); break; } case Utils::OutputFormat::StdErrFormatSameLine: |