summaryrefslogtreecommitdiff
path: root/tests/scripts/features/escape
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/features/escape')
-rw-r--r--tests/scripts/features/escape10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/scripts/features/escape b/tests/scripts/features/escape
index 8c2b8ce..bf069df 100644
--- a/tests/scripts/features/escape
+++ b/tests/scripts/features/escape
@@ -54,19 +54,21 @@ run_make_test(undef,
# Test escaped colons in prerequisites
# Quoting of backslashes in q!! is kind of messy.
+# Solaris sh does not properly handle backslashes even in '' so just
+# check the output make prints, not what the shell interprets.
run_make_test(q!
foo: foo\\:bar foo\\\\\\:bar foo\\\\\\\\\\:bar
-foo foo\\:bar foo\\\\\\:bar foo\\\\\\\\\\:bar: ; @echo '$@'
+foo foo\\:bar foo\\\\\\:bar foo\\\\\\\\\\:bar: ; : '$@'
!,
- '', "foo:bar\nfoo\\:bar\nfoo\\\\:bar\nfoo\n");
+ '', ": 'foo:bar'\n: 'foo\\:bar'\n: 'foo\\\\:bar'\n: 'foo'\n");
# Test backslash before non-special chars: should be kept as-is
run_make_test(q!
all: ..\foo
-.DEFAULT: ; @echo '$@'
+.DEFAULT: ; : '$@'
!,
- '', '..\foo');
+ '', ": '..\\foo'\n");
# This tells the test driver that the perl test script executed properly.
1;