From 75f879f37f8c8e6b671c558ab85b3926c96fbb0c Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 9 Feb 2000 19:57:15 +0000 Subject: * Fix backslash-escape in targets. * Release 3.78.91. --- tests/scripts/features/escape | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'tests/scripts/features') 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; -- cgit v1.2.3