mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-30 11:11:52 +00:00
Verify that backslashes before non-special characters are preserved.
This commit is contained in:
parent
a839588fc9
commit
7d3743dfdc
2 changed files with 13 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2012-09-09 Paul Smith <psmith@gnu.org>
|
2012-09-09 Paul Smith <psmith@gnu.org>
|
||||||
|
|
||||||
|
* scripts/features/escape: Check that backslashes before
|
||||||
|
non-special characters are not removed.
|
||||||
|
|
||||||
* scripts/features/utf8: New test for UTF-8 support.
|
* scripts/features/utf8: New test for UTF-8 support.
|
||||||
See Savannah bug #36529.
|
See Savannah bug #36529.
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,8 @@ $description = "Test various types of escaping in makefiles.";
|
||||||
$details = "\
|
$details = "\
|
||||||
Make sure that escaping of ':' works in target names.
|
Make sure that escaping of ':' works in target names.
|
||||||
Make sure escaping of whitespace works in target names.
|
Make sure escaping of whitespace works in target names.
|
||||||
Make sure that escaping of '#' works.";
|
Make sure that escaping of '#' works.
|
||||||
|
Make sure that backslash before non-special characters are kept.";
|
||||||
|
|
||||||
|
|
||||||
close(MAKEFILE);
|
close(MAKEFILE);
|
||||||
|
@ -62,5 +63,13 @@ foo foo\\:bar foo\\\\\\:bar foo\\\\\\\\\\:bar: ; @echo '$@'
|
||||||
!,
|
!,
|
||||||
'', "foo:bar\nfoo\\:bar\nfoo\\\\:bar\nfoo\n");
|
'', "foo:bar\nfoo\\:bar\nfoo\\\\:bar\nfoo\n");
|
||||||
|
|
||||||
|
# Test backslash before non-special chars: should be kept as-is
|
||||||
|
|
||||||
|
run_make_test(q!
|
||||||
|
all: ..\foo
|
||||||
|
.DEFAULT: ; @echo '$@'
|
||||||
|
!,
|
||||||
|
'', '..\foo');
|
||||||
|
|
||||||
# This tells the test driver that the perl test script executed properly.
|
# This tells the test driver that the perl test script executed properly.
|
||||||
1;
|
1;
|
||||||
|
|
Loading…
Reference in a new issue