diff options
author | Paul Smith <psmith@gnu.org> | 2012-03-04 16:53:50 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2012-03-04 16:53:50 +0000 |
commit | cf1c79c9a331896d5bc2e68a1ea8206105a53eaa (patch) | |
tree | a7f622393478929ecbf44027d94e5ee576ae637b /tests/scripts/features/escape | |
parent | 76827d7c10c2708a3147171b02bfe3981492a38f (diff) | |
download | gunmake-cf1c79c9a331896d5bc2e68a1ea8206105a53eaa.tar.gz |
Improve handling for escaped colons in prerequisite lists.
Fixes Savannah bug #12126 and bug #16545
Diffstat (limited to 'tests/scripts/features/escape')
-rw-r--r-- | tests/scripts/features/escape | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/scripts/features/escape b/tests/scripts/features/escape index 36bab18..0d4427e 100644 --- a/tests/scripts/features/escape +++ b/tests/scripts/features/escape @@ -54,5 +54,13 @@ run_make_test(undef, 'sharp', 'foo#bar.ext = (foo#bar.ext)'); +# Test escaped colons in prerequisites +# Quoting of backslashes in q!! is kind of messy. +run_make_test(q! +foo: foo\\:bar foo\\\\\\:bar foo\\\\\\\\\\:bar +foo foo\\:bar foo\\\\\\:bar foo\\\\\\\\\\:bar: ; @echo '$@' +!, + '', "foo:bar\nfoo\\:bar\nfoo\\\\:bar\nfoo\n"); + # This tells the test driver that the perl test script executed properly. 1; |