diff options
author | Boris Kolpackov <boris@kolpackov.net> | 2009-09-30 09:54:26 +0000 |
---|---|---|
committer | Boris Kolpackov <boris@kolpackov.net> | 2009-09-30 09:54:26 +0000 |
commit | 56653d852446e74a4d998c7d91e6591e28c240f9 (patch) | |
tree | d6d2368c9ab6edc0e0460a9813c1fa24f34d62e4 /tests/scripts/features/include | |
parent | f907a4d90c895f04ee7497a5f1b58ad1fd3cddb5 (diff) | |
download | gunmake-56653d852446e74a4d998c7d91e6591e28c240f9.tar.gz |
Fix Savannah bugs #15110, #25493, #12686, and #17740.
Diffstat (limited to 'tests/scripts/features/include')
-rw-r--r-- | tests/scripts/features/include | 52 |
1 files changed, 50 insertions, 2 deletions
diff --git a/tests/scripts/features/include b/tests/scripts/features/include index 196a987..7ad4112 100644 --- a/tests/scripts/features/include +++ b/tests/scripts/features/include @@ -90,8 +90,6 @@ all: ; @: foo: bar; @: ', '', ''); -1; - # Make sure that we don't die when the command fails but we dontcare. # (Savannah bug #13216). @@ -117,4 +115,54 @@ include -include sinclude', '', ''); + +# Test that the diagnostics is issued even if the target has been +# tried before with the dontcare flag (direct dependency case). +# +run_make_test(' +-include foo + +all: bar + +foo: baz +bar: baz +', +'', +"#MAKE#: *** No rule to make target `baz', needed by `bar'. Stop.\n", +512); + +# Test that the diagnostics is issued even if the target has been +# tried before with the dontcare flag (indirect dependency case). +# +run_make_test(' +-include foo + +all: bar + +foo: baz +bar: baz +baz: end +', +'', +"#MAKE#: *** No rule to make target `end', needed by `baz'. Stop.\n", +512); + +# Test that the diagnostics is issued even if the target has been +# tried before with the dontcare flag (include/-include case). +# +run_make_test(' +include bar +-include foo + +all: + +foo: baz +bar: baz +baz: end +', +'', +"#MAKEFILE#:2: bar: No such file or directory +#MAKE#: *** No rule to make target `end', needed by `baz'. Stop.\n", +512); + 1; |