From a34b85490d26a9064f892e43b8c6fa8005a7c770 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 7 Dec 2005 11:33:38 +0000 Subject: 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. --- tests/scripts/features/double_colon | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'tests/scripts/features') 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; -- cgit v1.2.3