diff options
Diffstat (limited to 'tests/auto/qml/debugger/qqmldebugjs')
-rw-r--r-- | tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp b/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp index b93be16e0e..8275f18b30 100644 --- a/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp +++ b/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp @@ -1011,18 +1011,29 @@ bool tst_QQmlDebugJS::init(const QString &qmlFile, bool blockMode) process->start(QStringList() << QLatin1String(NORMALMODE) << testFile(qmlFile)); if (!process->waitForSessionStart()) { + qDebug() << "could not launch application, or did not get 'Waiting for connection'."; return false; } connection->connectToHost("127.0.0.1", 3771); - if (!connection->waitForConnected()) + if (!connection->waitForConnected()) { + qDebug() << "could not connect to host!"; return false; + } + + if (client->state() == QQmlDebugClient::Enabled) + return true; return QQmlDebugTest::waitForSignal(client, SIGNAL(enabled())); } void tst_QQmlDebugJS::cleanup() { + if (QTest::currentTestFailed()) { + qDebug() << "Process State:" << process->state(); + qDebug() << "Application Output:" << process->output(); + } + if (process) { process->stop(); delete process; |