diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-05-30 15:48:45 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-05-30 14:01:18 +0000 |
commit | 704961111410f1d53b5aebc25ee188ced5a294d9 (patch) | |
tree | 8e7c40562f7713e70ef13e0b8ef5599ac718f080 /tests | |
parent | 81c1510f8e757bad9dd1eb3dd6226f0b36332559 (diff) |
Fail early if process crashes in QQmlProfilerService test
There is no point in waiting for a different exit status if we already
know that the process has crashed.
Change-Id: I9a5129bb4310a851d3852291374ea2de23ef04b1
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp index 3cb315b355..dbb264bf77 100644 --- a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp +++ b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp @@ -261,11 +261,13 @@ void tst_QQmlProfilerService::checkProcessTerminated() QVERIFY(m_client->client); QTRY_COMPARE(m_client->client->state(), QQmlDebugClient::NotConnected); QVERIFY(m_process); + QVERIFY(m_process->exitStatus() != QProcess::CrashExit); QTRY_COMPARE(m_process->exitStatus(), QProcess::NormalExit); } void tst_QQmlProfilerService::checkTraceReceived() { + QVERIFY(m_process->exitStatus() != QProcess::CrashExit); QTRY_VERIFY2(m_isComplete, "No trace received in time."); QVector<qint64> numbers; |