Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.8
Description
The selftest fails in line 99, because DeferredFlag flag flips after asking the event loop to sleep for 1ms. That means, the event loop sleeps more than 50ms, when asked to sleep 1ms.
https://testresults.qt.io/coin/integration/qt/qtbase/tasks/1716898474
agent:2024/05/28 12:42:12 build.go:404: 3: Mismatch in line count. Expected 12 but got 13.
agent:2024/05/28 12:42:12 build.go:404: 3:
agent:2024/05/28 12:42:12 build.go:404: 3: Expected (expected_eventloop.txt):
agent:2024/05/28 12:42:12 build.go:404: 3: ********* Start testing of tst_EventLoop *********
agent:2024/05/28 12:42:12 build.go:404: 3: Config: Using QtTest library
agent:2024/05/28 12:42:12 build.go:404: 3: PASS : tst_EventLoop::initTestCase()
agent:2024/05/28 12:42:12 build.go:404: 3: FAIL! : tst_EventLoop::fail() Failing test should still clean up
agent:2024/05/28 12:42:12 build.go:404: 3: Loc: [qtbase/tests/auto/testlib/selftests/eventloop/tst_eventloop.cpp(0)]
agent:2024/05/28 12:42:12 build.go:404: 3: SKIP : tst_EventLoop::skip() Skipping test should still clean up
agent:2024/05/28 12:42:12 build.go:404: 3: Loc: [qtbase/tests/auto/testlib/selftests/eventloop/tst_eventloop.cpp(0)]
agent:2024/05/28 12:42:12 build.go:404: 3: PASS : tst_EventLoop::pass()
agent:2024/05/28 12:42:12 build.go:404: 3: PASS : tst_EventLoop::cleanupTestCase()
agent:2024/05/28 12:42:12 build.go:404: 3: Totals: 3 passed, 1 failed, 1 skipped, 0 blacklisted, 0ms
agent:2024/05/28 12:42:12 build.go:404: 3: ********* Finished testing of tst_EventLoop *********
agent:2024/05/28 12:42:12 build.go:404: 3:
agent:2024/05/28 12:42:12 build.go:404: 3: Actual:
agent:2024/05/28 12:42:12 build.go:404: 3: ********* Start testing of tst_EventLoop *********
agent:2024/05/28 12:42:12 build.go:404: 3: Config: Using QtTest library 6.8.0, Qt 6.8.0 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2022), windows 10
agent:2024/05/28 12:42:12 build.go:404: 3: PASS : tst_EventLoop::initTestCase()
agent:2024/05/28 12:42:12 build.go:404: 3: FAIL! : tst_EventLoop::fail() Failing test should still clean up
agent:2024/05/28 12:42:12 build.go:404: 3: C:\Users\qt\work\qt\qtbase\tests\auto\testlib\selftests\eventloop\tst_eventloop.cpp(71) : failure location
agent:2024/05/28 12:42:12 build.go:404: 3: SKIP : tst_EventLoop::skip() Skipping test should still clean up
agent:2024/05/28 12:42:12 build.go:404: 3: C:\Users\qt\work\qt\qtbase\tests\auto\testlib\selftests\eventloop\tst_eventloop.cpp(77) : failure location
agent:2024/05/28 12:42:12 build.go:404: 3: FAIL! : tst_EventLoop::pass() '!flag' returned FALSE. ()
agent:2024/05/28 12:42:12 build.go:404: 3: C:\Users\qt\work\qt\qtbase\tests\auto\testlib\selftests\eventloop\tst_eventloop.cpp(99) : failure location
agent:2024/05/28 12:42:12 build.go:404: 3: PASS : tst_EventLoop::cleanupTestCase()
agent:2024/05/28 12:42:12 build.go:404: 3: Totals: 2 passed, 2 failed, 1 skipped, 0 blacklisted, 998ms
agent:2024/05/28 12:42:12 build.go:404: 3: ********* Finished testing of tst_EventLoop *********
agent:2024/05/28 12:42:12 build.go:404: 3:
Mind the time gap: The test function is logged at 12:42:12. It's the last function called in the test. However, the log seems to halt for almost 3 Minutes and continues summarizing the test class at 12:45:02. That's unusual and points at a system interruption during event processing.
agent:2024/05/28 12:45:02 build.go:404: 3: =============================================================================== agent:2024/05/28 12:45:02 build.go:404: 3: test cases: 6 | 5 passed | 1 failed agent:2024/05/28 12:45:02 build.go:404: 3: assertions: 4429 | 4428 passed | 1 failed