diff options
author | Boris Kolpackov <boris@kolpackov.net> | 2005-05-31 20:54:30 +0000 |
---|---|---|
committer | Boris Kolpackov <boris@kolpackov.net> | 2005-05-31 20:54:30 +0000 |
commit | af88a3550a6202361aa9eab7e59d83b0bf2c1610 (patch) | |
tree | fdcc9f84496083cac0fa2a852c56e9409c50be56 /tests | |
parent | e50e0fdf8856fada821393af3dbd268db09c3b47 (diff) | |
download | gunmake-af88a3550a6202361aa9eab7e59d83b0bf2c1610.tar.gz |
Fixed Savannah bugs #13216 and #13218.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 5 | ||||
-rw-r--r-- | tests/scripts/features/include | 18 | ||||
-rw-r--r-- | tests/scripts/features/patternrules | 20 |
3 files changed, 43 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 914a67f..b33269c 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2005-05-31 Boris Kolpackov <boris@kolpackov.net> + + * scripts/features/include: Add a test for Savannah bug #13216. + * scripts/features/patternrules: Add a test for Savannah bug #13218. + 2005-05-13 Paul D. Smith <psmith@gnu.org> * scripts/features/conditionals: Add tests for the new if... else diff --git a/tests/scripts/features/include b/tests/scripts/features/include index f48cbd3..26ee1bd 100644 --- a/tests/scripts/features/include +++ b/tests/scripts/features/include @@ -78,6 +78,7 @@ hello: ; @echo hello "hello\n" ); + # Test inheritance of dontcare flag when rebuilding makefiles. # run_make_test(' @@ -90,3 +91,20 @@ foo: bar; @: ', '', ''); 1; + + +# Make sure that we don't die when the command fails but we dontcare. +# (Savannah bug #13216). +# +run_make_test(' +.PHONY: all +all:; @: + +-include foo + +foo: bar; @: + +bar:; @false +', '', ''); + +1; diff --git a/tests/scripts/features/patternrules b/tests/scripts/features/patternrules index ee29c4e..0e2f281 100644 --- a/tests/scripts/features/patternrules +++ b/tests/scripts/features/patternrules @@ -95,5 +95,25 @@ $dir/foo.o"); unlink("$dir/foo.c"); + +# TEST #4: make sure precious flag is set properly for targets +# that are built via implicit rules (Savannah bug #13218). +# +run_make_test(' +.DELETE_ON_ERROR: + +.PRECIOUS: %.bar + +%.bar:; @touch $@ && false + +$(dir)/foo.bar: + +', +"dir=$dir", +"make: *** [$dir/foo.bar] Error 1", +512); + +unlink("$dir/foo.bar"); + # This tells the test driver that the perl test script executed properly. 1; |