qt6-bb10/tests/auto/corelib
Thiago Macieira 1ed0dd88a3 QThread/Unix: make QThreadPrivate::finish() be called much later
We need it to run after all the thread-local destructors have run, to
ensure that some user code hasn't run after QThreadPrivate::finish() has
finished. We achieve that by making it get called from a thread-local
destructor itself, in the form of a qScopeGuard.

This ought to have been done since C++11 thread_local with non-trivial
destructors became available. However, it only started showing up after
commit 4a93285b16 began using thread_local
inside Qt itself. The visible symptom was that QThreadPrivate::finish()
had already destroyed the thread's event dispatcher, but some user code
ran later and expected it to still exist (or, worse, recreated it, via
QEventLoop → QThreadData::ensureEventDispatcher).

Fixes: QTBUG-117996
Pick-to: 6.7
Change-Id: I8f3ce163ccc5408cac39fffd178d682e5bfa6955
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2024-05-07 14:22:27 -07:00
..
animation Change license for tests files 2024-02-04 09:56:42 +01:00
global ptests: Fix qlogging to use relative folder 2024-05-03 11:58:54 +03:00
io Exclude sync() usage from VxWorks platform 2024-05-07 17:30:37 +02:00
ipc QNativeIpcKey: use new comparison helper macros 2024-04-17 20:30:37 +02:00
itemmodels Extend QTest::failOnWarning() to a no-parameter fail-on-any-warning 2024-05-06 20:27:41 +02:00
kernel tst_QMetaProperty: expand testing around enums and flags 2024-05-06 16:52:05 +02:00
mimetypes QMimeType: use modernize comparisons 2024-04-30 17:46:34 +02:00
platform Android: skip tst_android::orientationChange() for Android 9 2024-05-02 21:40:11 +03:00
plugin tst_QFactoryLoader: includemocs 2024-03-12 14:23:42 +01:00
serialization Fix test compilation issues with QtLite configuration 2024-05-06 14:29:02 +00:00
text Fix test compilation issues with QtLite configuration 2024-05-06 14:29:02 +00:00
thread QThread/Unix: make QThreadPrivate::finish() be called much later 2024-05-07 14:22:27 -07:00
time Break out timezone data from cldr2qtimezone.py 2024-05-06 20:27:41 +02:00
tools QVersionNumber: use new comparison helper macros 2024-05-06 22:47:55 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00