aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-12-01 22:26:06 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-12-05 17:21:48 +0300
commit66eea6d40b7fd2c12b297f7ce55a62e02f4db291 (patch)
treeb32027be37054d110f52b8280cf8d2b959c78921 /unit-tests/test/script
parentcaf24aa705243f87c83d346d803adf84888a3cc5 (diff)
Make use of casts and canonicalizations in testscripts
Diffstat (limited to 'unit-tests/test/script')
-rw-r--r--unit-tests/test/script/parser/scope.test11
1 files changed, 9 insertions, 2 deletions
diff --git a/unit-tests/test/script/parser/scope.test b/unit-tests/test/script/parser/scope.test
index 44aebee..24b4a42 100644
--- a/unit-tests/test/script/parser/scope.test
+++ b/unit-tests/test/script/parser/scope.test
@@ -1,16 +1,23 @@
+# @@ REGEX Note that the script can still fail on POSIX for space-containing
+# paths.
+#
+if ($cxx.target.class == "windows")
+ q = "'"
+end
+
$* testscript <'cmd $@' >"cmd 1" # id-testscript
$* foo.test <'cmd $@' >"cmd foo/1" # id
wd = [dir_path] $~;
wd += test-driver;
wd += 1;
-$* testscript <'cmd "$~"' >"cmd $wd" # wd-testscript
+$* testscript <'cmd "$~"' >"cmd $q$wd$q" # wd-testscript
wd = [dir_path] $~;
wd += test-driver;
wd += foo;
wd += 1;
-$* foo.test <'cmd "$~"' >"cmd $wd" # wd
+$* foo.test <'cmd "$~"' >"cmd $q$wd$q" # wd
$* -s <<EOI # group-empty
{