qt5base-lts/tests/auto/corelib/kernel
Alex Trotsenko a93f07e977 tst_qeventdispatcher: fix UB in single-shot timers activation
Any of these timers must be stopped before the corresponding test
function completes. Otherwise, functors will operate on dangling
pointers, which can lead to failures or unreliability of other tests.

Fix this by setting a correct context in the QTimer::singleShot()
call.

Pick-to: 6.2 6.3
Change-Id: Icd23f6d9a2c6e7f33495d6badc4080a1b10c19f8
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
2022-01-13 02:09:08 +02:00
..
qapplicationstatic Introduce Q_APPLICATION_STATIC 2021-11-18 20:53:27 +01:00
qcoreapplication Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qdeadlinetimer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qelapsedtimer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qeventdispatcher tst_qeventdispatcher: fix UB in single-shot timers activation 2022-01-13 02:09:08 +02:00
qeventloop Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
qjnienvironment Android: check if objectClass() is not null in registerNativeMethods() 2021-11-15 19:00:21 +00:00
qjniobject Fix set*Field JNI template calls 2021-05-05 16:28:27 +03:00
qmath Add qHypot() to qmath.h, exposing and extending std::hypot() 2021-01-27 15:00:57 +01:00
qmetacontainer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmetaenum Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmetamethod QMetaMethod: Store method constness in metaobject system 2021-05-07 21:50:58 +02:00
qmetaobject Remove checks for features available in C++17 2021-10-02 17:54:39 +02:00
qmetaobjectbuilder QMetaObjectBuilder: remove unused serialization code 2021-03-20 10:24:27 +01:00
qmetaproperty Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmetatype tst_qmetatype: fix memleaks 2021-12-22 13:41:30 +01:00
qmimedata Remove the qmake project files 2021-01-07 15:32:28 +01:00
qobject QObject: Q_ASSERT the object type before calling a PMF 2021-11-27 21:38:22 -08:00
qpointer Fix autotest runtime failures on INTEGRITY 2021-12-16 19:45:08 +02:00
qproperty QObjectCompatProperty: Add support for custom getters 2021-10-20 17:04:51 +02:00
qsharedmemory tst_qsharedmemory: skip readOnly() test under asan 2021-12-23 08:14:02 +01:00
qsignalblocker Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsignalmapper Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsocketnotifier CMake: Remove the usage of QT_SOURCE_TREE from tests 2021-07-12 18:56:14 +02:00
qsystemsemaphore Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
qtimer Include qproperty.h where needed 2021-11-04 21:45:02 +01:00
qtranslator tst_qtranslator: fix memleak 2022-01-03 11:22:53 +00:00
qvariant tst_qvariant: fix -Wclass-memaccess 2021-11-16 06:46:52 +01:00
qwineventnotifier Repair tst_qwineventnotifier 2021-03-29 15:54:05 +02:00
CMakeLists.txt Introduce Q_APPLICATION_STATIC 2021-11-18 20:53:27 +01:00