summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-02-09 19:57:15 +0000
committerPaul Smith <psmith@gnu.org>2000-02-09 19:57:15 +0000
commit75f879f37f8c8e6b671c558ab85b3926c96fbb0c (patch)
tree4e20a8645b23c11813bdef5707a49eae5bddc8af /tests
parente68a27ec7b22753dd2a61585a69290ca2e3c9d80 (diff)
downloadgunmake-75f879f37f8c8e6b671c558ab85b3926c96fbb0c.tar.gz
* Fix backslash-escape in targets.3.78.91
* Release 3.78.91.
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog12
-rw-r--r--tests/scripts/features/escape18
2 files changed, 24 insertions, 6 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index fe8b25c..6fba7ea 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,11 +1,17 @@
+2000-02-07 Paul D. Smith <psmith@gnu.org>
+
+ * scripts/features/escape: Add a test for backslash-escaped spaces
+ in a target name (PR/1586).
+
2000-02-04 Paul D. Smith <psmith@gnu.org>
- * scripts/features/patspecific_vars: Add a test for PR/1407.
+ * scripts/features/patspecific_vars: Add a test for pattern-specific
+ target variables inherited from the parent target (PR/1407).
2000-02-02 Paul D. Smith <psmith@gnu.org>
* run_make_tests.pl (set_more_defaults): Hard-code the LANG to C
- to make sure porting order, etc. is predictable.
+ to make sure sorting order, etc. is predictable.
Reported by Andreas Jaeger <aj@suse.de>.
* run_make_tests.pl (set_more_defaults): Set the $wtime variable
@@ -32,7 +38,7 @@
* scripts/functions/call: Add a test for PR/1517 and PR/1527: make
sure $(call ...) doesn't eval its arguments and that you can
- invoke foreach from it without infinitely looping.
+ invoke foreach from it without looping forever.
1999-12-15 Paul D. Smith <psmith@gnu.org>
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;