qt6-bb10/tests/auto
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
..
bic/data Add binary compatibility file for 6.7.0 2024-04-17 10:18:37 +00:00
cmake CMake: Add `qt_add_ui` API 2024-05-07 21:12:29 +02:00
concurrent Fix truncation warning in generation_helpers 2024-03-18 20:10:34 +01:00
corelib QThread/Unix: make QThreadPrivate::finish() be called much later 2024-05-07 14:22:27 -07:00
dbus QDBusArgument: disambiguate between QMap on std::pair and std::map 2024-03-18 14:43:13 -07:00
gui QTextDocument: Add support for responsive images 2024-05-07 12:28:59 -07:00
guiapplauncher Convert "Color Editor Factory" Example to snippets 2024-04-19 13:39:41 +02:00
network tst_QNetworkRequest: add test for operator==() 2024-05-07 21:28:59 +02:00
opengl tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
other Fix test compilation issues with QtLite configuration 2024-05-06 14:29:02 +00:00
printsupport Change license for tests files 2024-02-04 09:56:42 +01:00
shared Change license for tests files 2024-02-04 09:56:42 +01:00
sql QSqlDatabase: add moveToThread()/currentThread() 2024-04-25 08:27:21 +02:00
testlib QTest: rip out qxp::function_ref from reportResult() 2024-04-26 18:19:36 +02:00
tools uic: Write fully qualified enumerations for cursors/icon pixmaps 2024-04-23 12:33:54 +02:00
wasm wasm: move wasm tests to own subdirectories 2024-04-15 19:28:47 +02:00
widgets tst_QGraphicsProxyWidget::tooltip_basic() remove setActiveWindow() 2024-05-07 17:30:33 +02:00
xml QtXml: fix leak in QDomText::splitText 2024-03-02 21:22:53 +01:00
CMakeLists.txt wasm: Enable qstandardpaths test 2024-05-06 16:01:28 +02:00
network-settings.h Change license for tests files 2024-02-04 09:56:42 +01:00