qt5base-lts/tests/auto/corelib/plugin/qplugin
Leander Beernaert a2376f4ded CMake: Fix tst_plugin
It is not possible to exclude targets based on the build configuration
in CMake. loadDebugPlugin() and loadReleasePlugin() will always fail as
both debug and release plugins are built regardless of the build
configuration.

This patch adds the CMAKE_BUILD define and skips the opposite test on
Windows. E.g.: With config = Debug, the loadReleasePlugin() test is
skipped and viceversa.

Change-Id: I2659882604bb39eb11d3e9e2b2b37a2972475285
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2020-02-20 15:11:01 +00:00
..
debugplugin Distinguish between qt_plugin and regular plugins 2019-10-28 09:20:37 +00:00
invalidplugin Distinguish between qt_plugin and regular plugins 2019-10-28 09:20:37 +00:00
releaseplugin Distinguish between qt_plugin and regular plugins 2019-10-28 09:20:37 +00:00
.gitignore
.prev_CMakeLists.txt Convert corelib plugin tests 2019-10-21 11:17:20 +00:00
CMakeLists.txt CMake: Fix tst_plugin 2020-02-20 15:11:01 +00:00
qplugin.pro Plugins: fix crash if the binary JSON data contains invalid size 2018-07-19 07:27:02 +00:00
tst_qplugin.cpp CMake: Fix tst_plugin 2020-02-20 15:11:01 +00:00
tst_qplugin.pro Plugins: store the metadata in CBOR instead of binary JSON 2018-09-01 15:19:39 +00:00