diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2023-03-27 22:19:40 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-04-26 04:55:47 -0300 |
| commit | b9394b48c1b42e0ef834315ca4f89161a5c12ae7 (patch) | |
| tree | f2be1386b53fc904118ea43bb505221e8d8c5ecb /src/testlib/doc/snippets/code/code.pro | |
| parent | ebd27ff654a5973be404183d3dd517bd13ff06a0 (diff) | |
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>
Diffstat (limited to 'src/testlib/doc/snippets/code/code.pro')
0 files changed, 0 insertions, 0 deletions
