qt5base-lts/tests/auto/corelib
Thiago Macieira 636dbe6045 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>
2022-10-19 00:10:42 +00:00
..
animation Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
global Long live Q_UNREACHABLE_RETURN()! 2022-10-15 22:11:47 +02:00
io Autotest/Unix: request zero-sized core dumps for crashing code 2022-10-14 08:18:53 -07:00
itemmodels Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
kernel Anticipate various warnings in tst_QVariant 2022-10-18 14:13:28 +02:00
mimetypes Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
platform Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
plugin tst_QLibrary: add a cleanup() method to unload left-overs 2022-10-19 00:10:42 +00:00
serialization Ignore the warning for all types in tst_QCborValue's mapFromArray*() 2022-10-18 14:13:28 +02:00
text tst_QChar::fromUcs4(): deduplicate a test-case 2022-10-18 14:13:28 +02:00
thread tst_QAtomicInt:fetchAndAdd(): remove two duplicate data rows 2022-10-17 15:53:32 +02:00
time tst_QTime: fix two duplicated test data tags 2022-10-17 15:53:32 +02:00
tools tst_QSet: fix flakiness after we removed the fixed, non-zero seed 2022-10-18 14:15:51 +00:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00