diff options
author | Paul Smith <psmith@gnu.org> | 2000-02-09 19:57:15 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2000-02-09 19:57:15 +0000 |
commit | 75f879f37f8c8e6b671c558ab85b3926c96fbb0c (patch) | |
tree | 4e20a8645b23c11813bdef5707a49eae5bddc8af /tests/scripts/features/escape | |
parent | e68a27ec7b22753dd2a61585a69290ca2e3c9d80 (diff) | |
download | gunmake-75f879f37f8c8e6b671c558ab85b3926c96fbb0c.tar.gz |
* Fix backslash-escape in targets.3.78.91
* Release 3.78.91.
Diffstat (limited to 'tests/scripts/features/escape')
-rw-r--r-- | tests/scripts/features/escape | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/scripts/features/escape b/tests/scripts/features/escape index 7404387..b1eed16 100644 --- a/tests/scripts/features/escape +++ b/tests/scripts/features/escape @@ -1,11 +1,17 @@ +# -*-perl-*- $description = "Test various types of escaping in makefiles."; -$details = "Make sure that escaping of `:' works in target names."; +$details = "\ +Make sure that escaping of `:' works in target names. +Also make sure escaping of whitespace works in target names"; open(MAKEFILE,"> $makefile"); -print MAKEFILE '$(path)foo : ; @echo cp $^ $@ -'; +print MAKEFILE <<'EOF'; +$(path)foo : ; @echo cp $^ $@ + +foo\ bar: ; @echo 'touch "$@"' +EOF close(MAKEFILE); @@ -34,5 +40,11 @@ $answer = "cp p:foo\n"; $answer = "$makefile:1: *** target pattern contains no `%'. Stop.\n"; &compare_output($answer,&get_logfile(1)); +# TEST 5: This one should work + +&run_make_with_options($makefile, "'foo bar'", &get_logfile, 0); +$answer = "touch \"foo bar\"\n"; +&compare_output($answer,&get_logfile(1)); + # This tells the test driver that the perl test script executed properly. 1; |