qt5base-lts/tests/auto/corelib
Thiago Macieira 1ca71cbff0 QLibrary: make isLoaded() report whether this object has load()ed
This reverts commit c2a92199b57b195176d2a0d68d140d72c1cbfb71
"QLibrary::setFileNameAndVersion: reset the tag after findOrCreate".
This restores the behavior of resolve() and compatibility with Qt 4 and
5, which is documented to imply a call to load().

Do note that if you call load() or resolve() and don't call unload(),
the library you've loaded can never be unloaded now. So don't leak!

[ChangeLog][Important Behavior Changes] QLibrary::isLoaded() now reports
whether this instance of QLibrary has succeeded in loading the library,
via direct or indirect call to load(). Previously, it used to reported
whether the actual library was loaded by any QLibrary instance.

The change to QLibrary::resolve() itself is effectively a no-op in this
patch, because isLoaded() would have returned false, but it ensures that
the implementation does what it says it will do.

Fixes: QTBUG-114977
Pick-to: 6.6
Change-Id: I907aa7aea8ef48469498fffd176d7a76ae73e04a
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2023-07-10 09:53:53 -07:00
..
animation CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
global CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
io QProcess/Unix: add a simple way to reset the UID and GID for the child 2023-07-08 15:03:23 -07:00
ipc CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
itemmodels QSortFilterProxyModel test: fix failing appearsAndSort 2023-07-07 21:35:47 +00:00
kernel Update blacklisting of tst_QSocketNotifier::unexpectedDisconnection 2023-07-10 14:11:29 +02:00
mimetypes CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
platform CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
plugin QLibrary: make isLoaded() report whether this object has load()ed 2023-07-10 09:53:53 -07:00
serialization CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
text CI: Enable tests under corelib/text for Wasm platform 2023-07-10 14:53:34 +02:00
thread CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
time Correct name of Ukraine's zone 2023-07-10 12:57:19 +02:00
tools CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00