forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Christian Stenger
parent
43c0d896a2
commit
d85e9bbe2f
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user