diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 5 | ||||
-rw-r--r-- | tests/scripts/features/targetvars | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 871cab9..ef2ef62 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +1999-10-08 Paul D. Smith <psmith@gnu.org> + + * scripts/features/targetvars: Add a check for PR/1378: + "Target-specific vars don't inherit correctly" + 1999-09-29 Paul D. Smith <psmith@gnu.org> * test_driver.pl (get_osname): Change $fancy_file_names to diff --git a/tests/scripts/features/targetvars b/tests/scripts/features/targetvars index e9fe092..83bf9ed 100644 --- a/tests/scripts/features/targetvars +++ b/tests/scripts/features/targetvars @@ -105,4 +105,24 @@ $answer = "qvar = qvar\nqvar =\n"; &compare_output($answer,&get_logfile(1)); +# TEST #8 +# For PR/1378: Target-specific vars don't inherit correctly + +$makefile2 = &get_tmpfile; + +open(MAKEFILE,"> $makefile2"); +print MAKEFILE <<'EOF'; +foo: FOO = foo +bar: BAR = bar +foo: bar +bar: baz +baz: ; @echo $(FOO) $(BAR) +EOF +close(MAKEFILE); + +&run_make_with_options("$makefile2", "", &get_logfile); +$answer = "foo bar\n"; +&compare_output($answer, &get_logfile(1)); + + 1; |