qt5base-lts/tests/auto/corelib/plugin/qlibrary
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
..
lib CMake: Fix tst_qlibrary to work on macOS with debug builds 2022-08-31 14:12:00 +02:00
lib2 CMake: Fix tst_qlibrary to work on macOS with debug builds 2022-08-31 14:12:00 +02:00
library_path Moving relevant tests to corelib/plugin 2011-09-01 12:42:51 +02:00
tst Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
.gitignore Remove mention of Trolltech in qlibrary autotest. 2011-12-28 04:48:06 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
tst_qlibrary.cpp tst_QLibrary: add a cleanup() method to unload left-overs 2022-10-19 00:10:42 +00:00