aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2013-10-08 11:02:24 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-16 08:34:32 +0200
commit29beac9aa1daf9a044dc62e567283779e68b3724 (patch)
tree423dc2373ebb41b16bd0336a50477286609f080f /tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
parent8c66618892334b4ef0b5ecced048f96d051352bd (diff)
Improve output of test case
Change-Id: Ib36583120ca42835534f0f8494637aeb9618f317 Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
Diffstat (limited to 'tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp')
-rw-r--r--tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
index b6fab536de..b9aefb33e4 100644
--- a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
+++ b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
@@ -323,8 +323,10 @@ void tst_QQmlProfilerService::connect(bool block, const QString &testFile)
void tst_QQmlProfilerService::cleanup()
{
if (QTest::currentTestFailed()) {
- qDebug() << "Process State:" << m_process->state();
- qDebug() << "Application Output:" << m_process->output();
+ qDebug() << "Process State:" << (m_process ? m_process->state() : QLatin1String("null"));
+ qDebug() << "Application Output:" << (m_process ? m_process->output() : QLatin1String("null"));
+ qDebug() << "Connection State:" << (m_connection ? m_connection->stateString() : QLatin1String("null"));
+ qDebug() << "Client State:" << (m_client ? m_client->stateString() : QLatin1String("null"));
}
delete m_process;
m_process = 0;
@@ -337,6 +339,7 @@ void tst_QQmlProfilerService::cleanup()
void tst_QQmlProfilerService::blockingConnectWithTraceEnabled()
{
connect(true, "test.qml");
+ QVERIFY(m_client);
QTRY_COMPARE(m_client->state(), QQmlDebugClient::Enabled);
m_client->setTraceState(true);
@@ -356,6 +359,7 @@ void tst_QQmlProfilerService::blockingConnectWithTraceEnabled()
void tst_QQmlProfilerService::blockingConnectWithTraceDisabled()
{
connect(true, "test.qml");
+ QVERIFY(m_client);
QTRY_COMPARE(m_client->state(), QQmlDebugClient::Enabled);
m_client->setTraceState(false);
@@ -377,6 +381,7 @@ void tst_QQmlProfilerService::blockingConnectWithTraceDisabled()
void tst_QQmlProfilerService::nonBlockingConnect()
{
connect(false, "test.qml");
+ QVERIFY(m_client);
QTRY_COMPARE(m_client->state(), QQmlDebugClient::Enabled);
m_client->setTraceState(true);
@@ -395,6 +400,7 @@ void tst_QQmlProfilerService::nonBlockingConnect()
void tst_QQmlProfilerService::pixmapCacheData()
{
connect(true, "pixmapCacheTest.qml");
+ QVERIFY(m_client);
QTRY_COMPARE(m_client->state(), QQmlDebugClient::Enabled);
m_client->setTraceState(true);
@@ -440,6 +446,7 @@ void tst_QQmlProfilerService::pixmapCacheData()
void tst_QQmlProfilerService::scenegraphData()
{
connect(true, "scenegraphTest.qml");
+ QVERIFY(m_client);
QTRY_COMPARE(m_client->state(), QQmlDebugClient::Enabled);
m_client->setTraceState(true);
@@ -473,6 +480,7 @@ void tst_QQmlProfilerService::scenegraphData()
void tst_QQmlProfilerService::profileOnExit()
{
connect(true, "exit.qml");
+ QVERIFY(m_client);
QTRY_COMPARE(m_client->state(), QQmlDebugClient::Enabled);
m_client->setTraceState(true);