summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@kolpackov.net>2005-12-07 11:33:38 +0000
committerBoris Kolpackov <boris@kolpackov.net>2005-12-07 11:33:38 +0000
commita34b85490d26a9064f892e43b8c6fa8005a7c770 (patch)
tree42b68caaa865142fbd3ebe302764cdd0b6aa676f /tests
parent1fd3f9d79cdf3f03450129020d3310b726003ed3 (diff)
downloadgunmake-a34b85490d26a9064f892e43b8c6fa8005a7c770.tar.gz
Fixed bug #14334 by propagate the change of modification time to all the
double-colon entries only if it is the last one to be updated.
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog4
-rw-r--r--tests/scripts/features/double_colon28
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 01aecc6..93cac87 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-07 Boris Kolpackov <boris@kolpackov.net>
+
+ * scripts/features/double_colon: Add a test for bug #14334.
+
2005-11-17 Boris Kolpackov <boris@kolpackov.net>
* scripts/functions/flavor: Add a test for the flavor function.
diff --git a/tests/scripts/features/double_colon b/tests/scripts/features/double_colon
index 082b815..cad605d 100644
--- a/tests/scripts/features/double_colon
+++ b/tests/scripts/features/double_colon
@@ -124,4 +124,32 @@ $answer = "ok\n$make_name: Circular d <- d dependency dropped.\noops\n";
unlink('foo','f1.h','f2.h');
+
+# TEST 9: make sure all rules in s double colon family get executed
+# (Savannah bug #14334).
+#
+
+&touch('one');
+&touch('two');
+
+run_make_test('
+.PHONY: all
+all: result
+
+result:: one
+ @echo $^ >>$@
+ @echo $^
+
+result:: two
+ @echo $^ >>$@
+ @echo $^
+
+',
+'',
+'one
+two');
+
+unlink('result','one','two');
+
+# This tells the test driver that the perl test script executed properly.
1;