qt6-bb10/tests/auto/corelib/kernel
Joerg Bornemann 6dbf357609 Fix asserts and crashes in QWinEventNotifier activation loop
The backwards iteration was done under the assumption that the only
valid modification of the winEventNotifierList in a slot connected to
activated() would be the removal of the notifier itself. This is wrong.

Instead, iterate forwards, like before 85403d0a, and check the index
against the current list size in every iteration. This ensures that we
do not run out of bounds while the list is modified.

Also, retry the activation loop if the list was modified by a slot
connected to activated(). This ensures that all notifiers with signaled
handles are activated.

Task-number: QTBUG-65940
Change-Id: I25f305463b9234f391abc51fe0628d02f49b6931
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2018-01-26 06:14:01 +00:00
..
qcoreapplication qmake: Allow non-bundle apps and libs to have an Info.plist 2017-09-29 10:08:08 +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.12 2017-06-18 12:58:58 +00:00
qeventdispatcher Extend blacklisting of qeventdispatcher to cover macOS 2017-05-23 14:52:09 +00:00
qeventloop Remove timer checks from testQuitLock 2017-08-22 05:10:48 +00:00
qmath Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
qmetaenum Updated license headers 2016-01-21 18:55:18 +00:00
qmetamethod macOS: Don't build auto-tests as application bundles unless explicitly requested 2016-10-23 10:39:56 +00:00
qmetaobject Test for leaks in QMetaObject::invoke with functors 2018-01-14 22:36:27 +00:00
qmetaobjectbuilder Add support for scoped enums to QMetaObjectBuilder 2017-04-24 19:19:44 +00:00
qmetaproperty Updated license headers 2016-01-21 18:55:18 +00:00
qmetatype Merge remote-tracking branch 'origin/5.9' into dev 2017-05-29 10:54:41 +02:00
qmimedata Updated license headers 2016-01-21 18:55:18 +00:00
qobject Merge remote-tracking branch 'origin/5.9' into 5.10 2017-12-30 12:09:53 +01:00
qpointer Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-04 08:59:18 +02:00
qsharedmemory tst_QSharedMemory::readOnly: Skip on macOS 2017-06-07 16:21:49 +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 Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
qtimer Clean up OS version checks for Apple platforms 2017-09-29 03:30:13 +00:00
qtranslator Merge remote-tracking branch 'origin/5.9' into 5.10 2018-01-24 13:38:25 +01:00
qvariant QVariant: convert QDateTime and QTime to string with milliseconds 2018-01-25 22:40:40 +00:00
qwineventnotifier Fix asserts and crashes in QWinEventNotifier activation loop 2018-01-26 06:14:01 +00:00
kernel.pro Exclude QSystemSemaphore test with -no-feature-systemsemaphore 2017-09-18 08:56:53 +00:00