diff options
author | Paul Smith <psmith@gnu.org> | 1999-10-08 06:32:24 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1999-10-08 06:32:24 +0000 |
commit | 829f4fd04b7fe9e18ed91c236ed46ebce5b27cae (patch) | |
tree | 859e6e83e967aa9159e3f1a72d939be72e0bc94f /tests/scripts/features | |
parent | f26e413b12a8a3ec4681be7f74abf7dbb88ac20a (diff) | |
download | gunmake-829f4fd04b7fe9e18ed91c236ed46ebce5b27cae.tar.gz |
* Fix test suite on DOS (PR/1344)
* Fix target-specific vars bug (PR/1378)
Diffstat (limited to 'tests/scripts/features')
-rw-r--r-- | tests/scripts/features/targetvars | 20 |
1 files changed, 20 insertions, 0 deletions
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; |