diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-02-08 12:04:24 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-02-08 11:19:54 +0000 |
commit | 2a71cd0ebc0ecfccfd4590dbc069e4ff90614328 (patch) | |
tree | 63cfb1f4f9385da6da3fa8991bd5eb8fcd7f4a24 /tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp | |
parent | 7d5fbbeda315ec37b142d9688b1a8a7c403f0475 (diff) |
QQmlProfilerService: Don't crash test if client is never created
If the self-terminating tests fail to establish a debugging session, we
never get a profiler client and we also don't abort on the connection
failure.
Change-Id: I91d97dd07ff4d3e3519d4bc03115ae82af93d652
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp')
-rw-r--r-- | tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp index 90c61afe13..db28d3202d 100644 --- a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp +++ b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp @@ -257,7 +257,10 @@ void tst_QQmlProfilerService::checkProcessTerminated() // cleanly here. // Wait for the process to finish by itself, if that hasn't happened already + QVERIFY(m_client); + QVERIFY(m_client->client); QTRY_COMPARE(m_client->client->state(), QQmlDebugClient::NotConnected); + QVERIFY(m_process); QTRY_COMPARE(m_process->exitStatus(), QProcess::NormalExit); } |