diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 4 | ||||
-rw-r--r-- | tests/scripts/features/statipattrules | 41 |
2 files changed, 45 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 05dfaec..67cf900 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2006-03-17 Boris Kolpackov <boris@kolpackov.net> + + * scripts/features/statipattrules: Add tests for bug #16053. + 2006-03-09 Paul Smith <psmith@gnu.org> * scripts/features/escape: Use "pre:" not "p:" to avoid conflicts diff --git a/tests/scripts/features/statipattrules b/tests/scripts/features/statipattrules index 429b56a..3f363de 100644 --- a/tests/scripts/features/statipattrules +++ b/tests/scripts/features/statipattrules @@ -67,4 +67,45 @@ foo.baz: ;@: ', '', ''); + +# TEST #6: make sure the second stem does not overwrite the first +# perprerequisite's stem (Savannah bug #16053). +# +run_make_test(' +all.foo.bar: %.foo.bar: %.one + +all.foo.bar: %.bar: %.two + +all.foo.bar: + @echo $* + @echo $^ + +.DEFAULT:;@: +', +'', +'all.foo +all.one all.foo.two'); + + +# TEST #7: make sure the second stem does not overwrite the first +# perprerequisite's stem when second expansion is enabled +# (Savannah bug #16053). +# +run_make_test(' +.SECONDEXPANSION: + +all.foo.bar: %.foo.bar: %.one $$*-one + +all.foo.bar: %.bar: %.two $$*-two + +all.foo.bar: + @echo $* + @echo $^ + +.DEFAULT:;@: +', +'', +'all.foo +all.one all-one all.foo.two all.foo-two'); + 1; |