0462dba766
The QTRY_* macros and QTestEventLoop exit early if the test has resolved; however, in the cleanup phase of a test, even if the test has failed, these loops should continue as normal. [ChangeLog][QtTest] During the cleanup() phase of a test, the QTRY_* macros and QTestEventLoop now ignore the test resolution, in contrast to when they are used from the test itself, which (since 6.3.0) exits the loops early if the test has failed. Pick-to: 6.4 6.3 Fixes: QTBUG-104441 Change-Id: I2673161967cbbc57815155af698a9338ab98a686 Reviewed-by: Jason McDonald <macadder1@gmail.com>
12 lines
591 B
Plaintext
12 lines
591 B
Plaintext
********* Start testing of tst_EventLoop *********
|
|
Config: Using QtTest library
|
|
PASS : tst_EventLoop::initTestCase()
|
|
FAIL! : tst_EventLoop::fail() Failing test should still clean up
|
|
Loc: [qtbase/tests/auto/testlib/selftests/eventloop/tst_eventloop.cpp(0)]
|
|
SKIP : tst_EventLoop::skip() Skipping test should still clean up
|
|
Loc: [qtbase/tests/auto/testlib/selftests/eventloop/tst_eventloop.cpp(0)]
|
|
PASS : tst_EventLoop::pass()
|
|
PASS : tst_EventLoop::cleanupTestCase()
|
|
Totals: 3 passed, 1 failed, 1 skipped, 0 blacklisted, 0ms
|
|
********* Finished testing of tst_EventLoop *********
|