diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2012-03-16 16:44:24 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-25 11:46:16 +0200 |
commit | b70c84564a135090740d2db98c04bf9ee8a6a4aa (patch) | |
tree | f4c13700e953f92564edd827357b997314931485 /tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp | |
parent | a5d4efbc0035a0a3356e6d69a7b7b1c2d17ff253 (diff) |
Debugger: Improve output of autotests
Change-Id: Ib938d2f39d8a0928c257ef923df5d5fcfa85c4cf
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp')
-rw-r--r-- | tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp b/tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp index d482e81009..0c35d1064c 100644 --- a/tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp +++ b/tests/auto/qml/debugger/qv8profilerservice/tst_qv8profilerservice.cpp @@ -220,7 +220,7 @@ bool tst_QV8ProfilerService::connect(bool block, const QString &testFile, m_process = new QQmlDebugProcess(executable); m_process->start(QStringList() << arguments); if (!m_process->waitForSessionStart()) { - *error = QLatin1String("Could not launch app ") + executable; + *error = QLatin1String("Could not launch application, or did not get 'Waiting for connection'."); return false; } @@ -234,9 +234,10 @@ bool tst_QV8ProfilerService::connect(bool block, const QString &testFile, void tst_QV8ProfilerService::cleanup() { - if (QTest::currentTestFailed()) + if (QTest::currentTestFailed()) { + qDebug() << "Process State:" << m_process->state(); qDebug() << "Application Output:" << m_process->output(); - + } delete m_client; delete m_process; delete m_connection; @@ -265,11 +266,8 @@ void tst_QV8ProfilerService::blockingConnectWithTraceDisabled() QTRY_COMPARE(m_client->state(), QQmlDebugClient::Enabled); m_client->stopProfiling(""); - if (QQmlDebugTest::waitForSignal(m_client, SIGNAL(complete()), 1000)) { - QString failMsg - = QString("Unexpected trace received! App output: %1\n\n").arg(m_process->output()); - QFAIL(qPrintable(failMsg)); - } + QVERIFY2(!QQmlDebugTest::waitForSignal(m_client, SIGNAL(complete()), 1000), + "Unexpected trace received."); m_client->startProfiling(""); m_client->stopProfiling(""); QVERIFY2(QQmlDebugTest::waitForSignal(m_client, SIGNAL(complete())), |