aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2022-02-07 11:08:23 +0100
committerChristian Stenger <christian.stenger@qt.io>2022-02-08 13:41:06 +0000
commitd8bd4e8e0534469354d9a15ba3ef161c5b701482 (patch)
tree7d4baba992716b713bc52997e0b12fa916db13af /tests
parentade68514ff71a534d7578b2bfc65f4d70bd21d3a (diff)
Tests: Fix pluginspec test on Windows
Change-Id: Ie72131f2e85b999ef8aaefd773407b2c5ce23019 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/extensionsystem/pluginspec/CMakeLists.txt2
-rw-r--r--tests/auto/extensionsystem/pluginspec/test.qbs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/extensionsystem/pluginspec/CMakeLists.txt b/tests/auto/extensionsystem/pluginspec/CMakeLists.txt
index 670412bfd8..ad91750f28 100644
--- a/tests/auto/extensionsystem/pluginspec/CMakeLists.txt
+++ b/tests/auto/extensionsystem/pluginspec/CMakeLists.txt
@@ -4,7 +4,7 @@ add_qtc_test(tst_pluginspec
DEFINES
PLUGIN_DIR="${CMAKE_CURRENT_BINARY_DIR}"
PLUGINSPEC_DIR="${CMAKE_CURRENT_SOURCE_DIR}"
- DLL_INFIX="d${PROJECT_VERSION_MAJOR}"
+ DLL_INFIX="$<$<CONFIG:Debug>:d>"
DEPENDS ExtensionSystem
SOURCES
tst_pluginspec.cpp
diff --git a/tests/auto/extensionsystem/pluginspec/test.qbs b/tests/auto/extensionsystem/pluginspec/test.qbs
index 88a009982f..b8196f93e6 100644
--- a/tests/auto/extensionsystem/pluginspec/test.qbs
+++ b/tests/auto/extensionsystem/pluginspec/test.qbs
@@ -10,7 +10,7 @@ QtcAutotest {
cpp.defines: outer.concat([
'PLUGIN_DIR="' + destinationDirectory + '"',
'PLUGINSPEC_DIR="' + sourceDirectory + '"',
- 'DLL_INFIX=""'
+ 'DLL_INFIX="' + (qbs.buildVariant === "debug" ? "d" : "") + '"'
])
}