qt5base-lts/tests/auto/corelib/kernel
Alex Trotsenko 9f6f3da8eb tst_qeventdispatcher: avoid influence between test functions
When some test function fails (even as expected), it can leave the
event dispatcher in an inconsistent state where the posted events
queue might not be empty. As a result, this may break the internal
logic of the next test function that is run.

So, calling eventDispatcher->processEvents() after each completed
function resets the event dispatcher to its initial state, which
fixes the problem.

Pick-to: 6.2 6.3
Change-Id: I5a54f892d09a6eca73c8fc82875ce3b9ce4a3242
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2022-01-19 19:35:23 +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: avoid influence between test functions 2022-01-19 19:35:23 +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 QMetaType: add a missing check for null d_ptr 2022-01-18 03:56:40 +00: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 Remove unused .qrc files 2022-01-17 23:17:01 +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