c6bee8e4b2
If the deadline is far in the future, the conversions to nanoseconds or internal arithmetic may overflow and give an invalid object, thus the deadline may end up in the past. Added a test to the testlib selftest for sleep. [ChangeLog][QtCore][QDeadlineTimer] Fixed integer overflows leading to immediate timeouts. Task-number: QTBUG-69750 Change-Id: I9814eccdf9f9b3add9ca66ec3e27e10cd5ad54a8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
9 lines
312 B
Plaintext
9 lines
312 B
Plaintext
********* Start testing of tst_Sleep *********
|
|
Config: Using QtTest library
|
|
PASS : tst_Sleep::initTestCase()
|
|
PASS : tst_Sleep::sleep()
|
|
PASS : tst_Sleep::wait()
|
|
PASS : tst_Sleep::cleanupTestCase()
|
|
Totals: 4 passed, 0 failed, 0 skipped, 0 blacklisted, 0ms
|
|
********* Finished testing of tst_Sleep *********
|