summaryrefslogtreecommitdiff
path: root/tests/auto/blackbox/testdata/minimumSystemVersion/specific.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/blackbox/testdata/minimumSystemVersion/specific.qbs')
-rw-r--r--tests/auto/blackbox/testdata/minimumSystemVersion/specific.qbs7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/blackbox/testdata/minimumSystemVersion/specific.qbs b/tests/auto/blackbox/testdata/minimumSystemVersion/specific.qbs
index f6ecab418..8099d79b9 100644
--- a/tests/auto/blackbox/testdata/minimumSystemVersion/specific.qbs
+++ b/tests/auto/blackbox/testdata/minimumSystemVersion/specific.qbs
@@ -4,7 +4,12 @@ import qbs.Utilities
// when the application is run its output should confirm
// that the given values took effect
CppApplication {
- condition: qbs.targetOS.contains("windows") || qbs.targetOS.contains("macos")
+ condition: {
+ var result = qbs.targetPlatform === qbs.hostPlatform;
+ if (!result)
+ console.info("targetPlatform differs from hostPlatform");
+ return result && qbs.targetOS.contains("windows") || qbs.targetOS.contains("macos");
+ }
files: [qbs.targetOS.contains("darwin") ? "main.mm" : "main.cpp"]
consoleApplication: true