From d85e9bbe2f8bf3d6a19e558c4e34e08ba9489eed Mon Sep 17 00:00:00 2001 From: Claus Steuer Date: Sat, 9 Sep 2017 23:33:02 +0200 Subject: 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 --- src/plugins/autotest/testrunner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.1