qt5base-lts/tests/auto
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
..
android
bic/data Add binary compatibility files for 5.11 for QtBase 2018-06-05 06:00:28 +00:00
cmake Export modules' enabled/disabled features to cmake 2018-09-28 13:10:28 +00:00
concurrent Merge remote-tracking branch 'origin/5.11' into dev 2018-02-16 08:54:58 +01:00
corelib Windows: improve QTimer::remainingTime when called before processEvents 2019-01-28 06:34:03 +00:00
dbus QDBusServiceWatcher namespace prefix support 2018-11-06 09:52:09 +00:00
gui QProcess: mark obsolete functions as deprecated 2019-01-23 18:49:12 +00:00
guiapplauncher
installed_cmake
network tst_qsslsocket: Make an ALPN test available to other backends 2019-01-24 15:24:23 +00:00
opengl qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
other Add lancelot tests to verify vertical alignment of inline images 2018-12-03 07:52:55 +00:00
printsupport tst_QPrinter: stabilize qprinter test 2019-01-20 13:39:54 +00:00
shared Read font selection flags and use them when querying for metrics 2018-11-30 16:15:03 +00:00
sql Always escape the table names when creating the SQL statement 2019-01-23 20:07:09 +00:00
testlib Fix inline ASM to use local labels for jump operations 2019-01-25 08:45:54 +00:00
tools uic: Fix broken icon code generation 2019-01-23 17:06:59 +00:00
widgets Merge remote-tracking branch 'origin/5.12' into dev 2019-01-21 13:03:09 +01:00
xml Don't indefinitely wait for data if it was able to read some data 2018-01-24 05:54:31 +00:00
auto.pro winrt: Skip network auto tests for now 2018-06-22 05:02:39 +00:00
network-settings.h Extend the default retry times of QtNetworkSettings::verifyConnection 2019-01-23 15:28:33 +00:00
testserver.pri Enable path conversion from Windows-style to Unix-style on Windows 2019-01-24 15:42:47 +00:00