diff options
author | Paul Smith <psmith@gnu.org> | 2013-09-22 11:28:46 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-09-22 17:10:34 -0400 |
commit | 65931ce7a9a84ddb9adb118b7558bfd1b8c3ee46 (patch) | |
tree | 2267155ce5a4ae0f8b2b6e6e67eb315e33e3cb97 /tests/scripts/features/escape | |
parent | 1a991ada47e0c98ddcb4b2d30b1cf14e4b6a949a (diff) | |
download | gunmake-65931ce7a9a84ddb9adb118b7558bfd1b8c3ee46.tar.gz |
Regression test portability to Solaris.
Diffstat (limited to 'tests/scripts/features/escape')
-rw-r--r-- | tests/scripts/features/escape | 10 |
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; |