AutoTest: Fix output handling

Connect to the correct signal to explicitly react on
output coming on stdout.
Necessary as we are changing the read channel while
processing output.

Fixes: QTCREATORBUG-23939
Change-Id: Ibf62de62fb64bd9c2395f93643e39d11d5b4e0d5
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2020-04-28 10:15:45 +02:00
parent 662c224bab
commit 8806ae3bdf

View File

@@ -50,7 +50,7 @@ TestOutputReader::TestOutputReader(const QFutureInterface<TestResultPtr> &future
};
if (m_testApplication) {
connect(m_testApplication, &QProcess::readyRead,
connect(m_testApplication, &QProcess::readyReadStandardOutput,
this, [chopLineBreak, this] () {
m_testApplication->setReadChannel(QProcess::StandardOutput);
while (m_testApplication->canReadLine())