summaryrefslogtreecommitdiff
path: root/tests/auto/language/testdata/getNativeSetting.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/language/testdata/getNativeSetting.qbs')
-rw-r--r--tests/auto/language/testdata/getNativeSetting.qbs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/language/testdata/getNativeSetting.qbs b/tests/auto/language/testdata/getNativeSetting.qbs
index 975aefebc..c8126bb10 100644
--- a/tests/auto/language/testdata/getNativeSetting.qbs
+++ b/tests/auto/language/testdata/getNativeSetting.qbs
@@ -1,13 +1,15 @@
import qbs.FileInfo
import qbs.Utilities
+import qbs.Host
+
Project {
Product {
name: "p1"
targetName: {
- if (qbs.hostOS.contains("macos")) {
+ if (Host.os().contains("macos")) {
return Utilities.getNativeSetting("/System/Library/CoreServices/SystemVersion.plist", "ProductName");
- } else if (qbs.hostOS.contains("windows")) {
+ } else if (Host.os().contains("windows")) {
var productName = Utilities.getNativeSetting("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion", "ProductName");
if (productName.contains("Windows")) {
return "Windows";