summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-12-18 17:43:47 +0000
committerPaul Smith <psmith@gnu.org>1999-12-18 17:43:47 +0000
commitaf44f16799fa185e2729cda1653c80d29b598642 (patch)
treeeb3a7c2d2fdaff7b27d5c7f37939718538e3fa59 /tests/scripts
parent1a35bfb45b3dfbd38c583247a90a21c3b10ccafa (diff)
downloadgunmake-af44f16799fa185e2729cda1653c80d29b598642.tar.gz
* Fix problems with double-colon rules.
* Fix problems with INTERMEDIATE rules.
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/targets/INTERMEDIATE21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/scripts/targets/INTERMEDIATE b/tests/scripts/targets/INTERMEDIATE
index 3ea6421..a1df8bf 100644
--- a/tests/scripts/targets/INTERMEDIATE
+++ b/tests/scripts/targets/INTERMEDIATE
@@ -82,5 +82,26 @@ $answer = "cp foo.f foo.e\ncp bar.f bar.e\ncat foo.e bar.e > foo.c\nrm foo.e bar
unlink('foo.f', 'foo.e', 'foo.d', 'foo.c', 'bar.f', 'bar.e', 'bar.d', 'bar.c');
+# TEST #6 -- added for PR/1423
+
+$makefile2 = &get_tmpfile;
+
+open(MAKEFILE, "> $makefile2");
+
+print MAKEFILE <<'EOF';
+all: foo
+foo.a: ; touch $@
+%: %.a ; touch $@
+.INTERMEDIATE: foo.a
+EOF
+
+close(MAKEFILE);
+
+&run_make_with_options($makefile2, "-R", &get_logfile);
+$answer = "touch foo.a\ntouch foo\nrm foo.a\n";
+&compare_output($answer, &get_logfile(1));
+
+unlink('foo');
+
# This tells the test driver that the perl test script executed properly.
1;