qt6-bb10/tests/auto/corelib/kernel
Christian Andersen 6a7e2fedef Windows: improve QTimer::remainingTime when called before processEvents
This checks that intenalHwnd in QEventDispatcherWin32::remainingTime is
initialized. If calling remaningTime, before createInternalHwnd
is called, the timeout member in the WinTimerInfo struct is not
initialized and contains a random value. This adds a check for that and
in that case returns the requested timer interval as the timer has not
yet been started. createInternalHwnd is called on the first request to
process events.

It also adds a test for checking the remaining time. But the issue can
only be seen if solely running the remainingTimeInitial test in
tst_QTimer. If running the test along side another test the other
test likely calls processEvents indirectly, which hides the issue. I
don't know if this is an issue in practice (the bug has been there
for as long a the git history goes back, 2011), but it causes the
basic_chrono test to fail if run as the only test.

Change-Id: I05c35105da778912dedf8d749aa7c953841d986e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-01-28 06:34:03 +00:00
..
qcoreapplication fix out-of-bounds access on trailing percent sign in tr() argument 2019-01-14 08:52:15 +00:00
qdeadlinetimer Increase the resolution for QDeadlineTimer unit test 2016-10-26 03:16:26 +00:00
qelapsedtimer Extend blacklisting of tst_QElapsedTimer::elapsed to cover macOS 10.13 2018-07-31 05:02:30 +00:00
qeventdispatcher tests: Distinguish tst_qeventdispatcher and tst_qguieventdispatcher 2018-11-16 14:16:09 +00:00
qeventloop tst_QEventLoop: Remove unconditional qWait() 2018-04-10 08:32:21 +00:00
qmath Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
qmetaenum QMetaEnum: fix UB 2018-10-17 08:48:13 +00:00
qmetamethod Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qmetaobject Allow more fine grained control over QFlags debug output 2019-01-23 16:12:52 +00:00
qmetaobjectbuilder Fix QMetaObject naming of class enum flag 2018-08-11 07:59:15 +00:00
qmetaproperty Updated license headers 2016-01-21 18:55:18 +00:00
qmetatype Merge remote-tracking branch 'origin/5.12' into dev 2019-01-07 01:00:08 +01:00
qmimedata Updated license headers 2016-01-21 18:55:18 +00:00
qobject Use QScopedPointer instead of new/delete 2018-12-10 22:14:56 +00:00
qpointer Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-04 08:59:18 +02:00
qsharedmemory tst_qsharedmemory: Use qt_test_helper functionality 2018-07-31 05:26:59 +00:00
qsignalblocker Updated license headers 2016-01-21 18:55:18 +00:00
qsignalmapper Updated license headers 2016-01-21 18:55:18 +00:00
qsocketnotifier winrt: Fix tst_QSocketNotifier::asyncMultipleDatagram 2017-05-11 06:37:36 +00:00
qsystemsemaphore tst_qsystemsemaphore: Use qt_test_helper functionality 2018-07-31 05:27:08 +00:00
qtimer Windows: improve QTimer::remainingTime when called before processEvents 2019-01-28 06:34:03 +00:00
qtranslator Allow loading of empty translation files 2018-07-12 08:54:33 +00:00
qvariant Treat shorts as int in QVariant::canConvert() 2018-11-01 17:31:13 +00:00
qwineventnotifier Merge remote-tracking branch 'origin/5.11' into dev 2018-03-28 08:12:21 +02:00
kernel.pro Make tests compile for Android 2018-06-25 08:01:19 +00:00