qt5base-lts/tests/auto/corelib/plugin/qlibrary
Thiago Macieira 77eef32917 QLibrary: fix loading multiple versions of a library
The libraryMap only stored the file path, so we couldn't load two
versions of the same library as we'd find the other version already
loaded. Change the map to index by file name and version (using a NUL as
separator, since that can't appear in file names).

[ChangeLog][QtCore][QLibrary] Fixed a bug that caused QLibrary to be
unable to load two different versions of a library of a given name at the
same time. Note that this is often inadviseable and loading the second
library may cause a crash.

Pick-to: 6.4
Change-Id: I12a088d1ae424825abd3fffd171ce3bb0590978d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-10-20 15:38:47 -07: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
tst Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00
.gitignore
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 QLibrary: fix loading multiple versions of a library 2022-10-20 15:38:47 -07:00