forked from qt-creator/qt-creator
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:
@@ -50,7 +50,7 @@ TestOutputReader::TestOutputReader(const QFutureInterface<TestResultPtr> &future
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (m_testApplication) {
|
if (m_testApplication) {
|
||||||
connect(m_testApplication, &QProcess::readyRead,
|
connect(m_testApplication, &QProcess::readyReadStandardOutput,
|
||||||
this, [chopLineBreak, this] () {
|
this, [chopLineBreak, this] () {
|
||||||
m_testApplication->setReadChannel(QProcess::StandardOutput);
|
m_testApplication->setReadChannel(QProcess::StandardOutput);
|
||||||
while (m_testApplication->canReadLine())
|
while (m_testApplication->canReadLine())
|
||||||
|
|||||||
Reference in New Issue
Block a user