aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2013-02-28 13:28:53 +0100
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-02-28 16:26:46 +0100
commit44451e7b011b0a7d78abaf1c5331861d001508d7 (patch)
treee2caa0d7248a57189724e74bc3332f647598ac39 /tests/manual
parent7d04a086aa396951ec9cb03767916f5ec9228729 (diff)
fix tests/manual/configure for Windows
Process doesn't split the cmd argument. Change-Id: Iebdebff0cf18b046eac249441847ee39ec87c9eb Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/configure/modules/definition/module.qbs14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/manual/configure/modules/definition/module.qbs b/tests/manual/configure/modules/definition/module.qbs
index 437e74a2d..d43f1c1bf 100644
--- a/tests/manual/configure/modules/definition/module.qbs
+++ b/tests/manual/configure/modules/definition/module.qbs
@@ -7,13 +7,17 @@ Module {
id: node
property string result
configure: {
- var cmd = '';
- if (qbs.targetOS === "windows")
- cmd = 'cmd /c date /t';
- else
+ var cmd;
+ var args;
+ if (qbs.targetOS === "windows") {
+ cmd = "cmd";
+ args = ["/c", "date", "/t"];
+ } else {
cmd = 'date';
+ args = [];
+ }
var p = new Process();
- if (0 === p.exec(cmd, [])) {
+ if (0 === p.exec(cmd, args)) {
found = true;
result = p.readLine();
} else {