summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/kernel
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-10-11 10:16:27 -0700
committerMarc Mutz <marc.mutz@qt.io>2022-10-19 00:10:42 +0000
commit636dbe604596b2860e4f6d9b159fc017dcd2f66b (patch)
treecf8f87d7e8d740b0aa8e578129c78404c3ecc089 /tests/auto/corelib/kernel
parent9c6b8ea2907ac97392b521a1c68e4dd03c2028e1 (diff)
tst_QLibrary: add a cleanup() method to unload left-overs
QLibrary intentionally does not unload on destruction, so failing tests may leave libraries already loaded and cause further tests to fail because of that. So add a cleanup() method to unload everything we may have loaded. Note that QLibrary::unload() sets its state to NotLoaded after one successful call, so we must recreate the object in case it had been load()ed multiple times. Pick-to: 6.2 6.4 Change-Id: I12a088d1ae424825abd3fffd171d133c678f910a Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'tests/auto/corelib/kernel')
0 files changed, 0 insertions, 0 deletions