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>
11 lines
136 B
Plaintext
11 lines
136 B
Plaintext
TAP version 13
|
|
# tst_Sleep
|
|
ok 1 - initTestCase()
|
|
ok 2 - sleep()
|
|
ok 3 - wait()
|
|
ok 4 - cleanupTestCase()
|
|
1..4
|
|
# tests 4
|
|
# pass 4
|
|
# fail 0
|