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/qqmlinspector | |
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/qqmlinspector')
-rw-r--r-- | tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp b/tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp index 39e0f0d3e5..e033700aac 100644 --- a/tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp +++ b/tests/auto/qml/debugger/qqmlinspector/tst_qqmlinspector.cpp @@ -150,9 +150,8 @@ void tst_QQmlInspector::init() m_process = new QQmlDebugProcess(executable); m_process->start(QStringList() << argument); - if (!m_process->waitForSessionStart()) { - QFAIL(QString("Could not launch app '%1'.\nApplication output:\n%2").arg(executable, m_process->output()).toAscii()); - } + QVERIFY2(m_process->waitForSessionStart(), + "Could not launch application, or did not get 'Waiting for connection'."); QQmlDebugConnection *m_connection = new QQmlDebugConnection(); m_client = new QQmlInspectorClient(m_connection); @@ -162,6 +161,10 @@ void tst_QQmlInspector::init() void tst_QQmlInspector::cleanup() { + if (QTest::currentTestFailed()) { + qDebug() << "Process State:" << m_process->state(); + qDebug() << "Application Output:" << m_process->output(); + } delete m_process; delete m_connection; delete m_client; |