Assuming all output is available on the first readyReadStandardOutput()
signal leads to flaky test results.
Change-Id: I442d7edc905abc067d6c32a4a55afd42ed03e3c9
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
m_client->setTraceState(true);
QVERIFY(QQmlDebugTest::waitForSignal(m_process, SIGNAL(readyReadStandardOutput())));
- QVERIFY(m_process->output().indexOf(QLatin1String("image loaded")) != -1 ||
- m_process->output().indexOf(QLatin1String("image error")) != -1 );
-
+ while (m_process->output().indexOf(QLatin1String("image loaded")) == -1 &&
+ m_process->output().indexOf(QLatin1String("image error")) == -1)
+ QVERIFY(QQmlDebugTest::waitForSignal(m_process, SIGNAL(readyReadStandardOutput())));
m_client->setTraceState(false);