diff options
author | Paul Smith <psmith@gnu.org> | 2000-02-05 07:37:40 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2000-02-05 07:37:40 +0000 |
commit | 9b0a3d91ea594ff1afe7b8ec83ff41ba828d243b (patch) | |
tree | b35695ad78c82d25f7e60d4c93880394a2a970b3 /tests | |
parent | 95a09e94f7b4155913cb4b1a0e6c1576780f09d1 (diff) | |
download | gunmake-9b0a3d91ea594ff1afe7b8ec83ff41ba828d243b.tar.gz |
* Fix PR/1407.
* Keep filename/lineno information for variables, for debugging.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 4 | ||||
-rw-r--r-- | tests/scripts/features/patspecific_vars | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 68825fa..368a30c 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2000-02-04 Paul D. Smith <psmith@gnu.org> + + * scripts/features/patspecific_vars: Add a test for PR/1407. + 2000-01-23 Paul D. Smith <psmith@gnu.org> * scripts/features/include: Remove a check; the fix caused more diff --git a/tests/scripts/features/patspecific_vars b/tests/scripts/features/patspecific_vars index 0684a80..7feb687 100644 --- a/tests/scripts/features/patspecific_vars +++ b/tests/scripts/features/patspecific_vars @@ -19,6 +19,8 @@ t%.x: BAR = four %.x: override BAZ = three one.x: override FOO = one one.x two.x three.x: ; @echo $(FOO) $(BAR) $(BAZ) +four.x: baz ; @echo $(FOO) $(BAR) $(BAZ) +baz: ; @echo $(FOO) $(BAR) $(BAZ) EOF close(MAKEFILE); @@ -37,4 +39,11 @@ $answer = "one two three\nfoo four baz\nfoo bar three\n"; $answer = "one two three\nfoo four five\nfoo bar three\n"; &compare_output($answer,&get_logfile(1)); + +# TEST #3 -- make sure patterns are inherited properly + +&run_make_with_options($makefile, "four.x", &get_logfile); +$answer = "foo two three\nfoo two three\n"; +&compare_output($answer,&get_logfile(1)); + 1; |