qt6-bb10/tests/auto/corelib/kernel/qcoreapplication
Thiago Macieira b9394b48c1 tst_QCoreApplication: ensure that theMainThread has expected states
The expected states are:
- nothing sets theMainThread before main()
- theMainThread is reset when the last QObject (the QCoreApplication in
  the test) is destroyed

The GUI version of this test appears to leak a lot of QObjects. By the
time this function runs, theMainThread's QThreadData still has a
refcount of 66 on Linux/XCB. The Windows non-GUI version also
failed. Neither situation was investigated to see why objects are
getting leaked.

Pick-to: 6.5
Change-Id: Idd5e1bb52be047d7b4fffffd17507d9e6ef08743
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-04-26 04:55:47 -03:00
..
.gitignore Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
Info.plist Provide sensible defaults for QCoreApplication::applicationVersion 2017-01-12 02:13:21 +00:00
tst_qcoreapplication.cpp tst_QCoreApplication: ensure that theMainThread has expected states 2023-04-26 04:55:47 -03:00
tst_qcoreapplication.h tst_QCoreApplication: ensure that theMainThread has expected states 2023-04-26 04:55:47 -03:00