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>
18 lines
429 B
Plaintext
18 lines
429 B
Plaintext
TAP version 13
|
|
# tst_EventLoop
|
|
ok 1 - initTestCase()
|
|
not ok 2 - fail()
|
|
---
|
|
# Failing test should still clean up
|
|
at: tst_EventLoop::fail() (qtbase/tests/auto/testlib/selftests/eventloop/tst_eventloop.cpp:0)
|
|
file: qtbase/tests/auto/testlib/selftests/eventloop/tst_eventloop.cpp
|
|
line: 0
|
|
...
|
|
ok 3 - skip() # SKIP Skipping test should still clean up
|
|
ok 4 - pass()
|
|
ok 5 - cleanupTestCase()
|
|
1..5
|
|
# tests 5
|
|
# pass 3
|
|
# fail 1
|