summaryrefslogtreecommitdiff
path: root/tests/auto/blackbox/testdata/autotest-timeout/autotests-timeout.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/blackbox/testdata/autotest-timeout/autotests-timeout.qbs')
-rw-r--r--tests/auto/blackbox/testdata/autotest-timeout/autotests-timeout.qbs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/blackbox/testdata/autotest-timeout/autotests-timeout.qbs b/tests/auto/blackbox/testdata/autotest-timeout/autotests-timeout.qbs
index 8ae4f3ceb..08de04fc7 100644
--- a/tests/auto/blackbox/testdata/autotest-timeout/autotests-timeout.qbs
+++ b/tests/auto/blackbox/testdata/autotest-timeout/autotests-timeout.qbs
@@ -1,7 +1,9 @@
+import qbs.Host
+
Project {
CppApplication {
condition: {
- var result = qbs.targetPlatform === qbs.hostPlatform;
+ var result = qbs.targetPlatform === Host.platform();
if (!result)
console.info("targetPlatform differs from hostPlatform");
return result;
@@ -20,7 +22,7 @@ Project {
AutotestRunner {
Depends {
name: "cpp" // Make sure build environment is set up properly.
- condition: qbs.hostOS.contains("windows") && qbs.toolchain.contains("gcc")
+ condition: Host.os().contains("windows") && qbs.toolchain.contains("gcc")
}
}
}