diff options
author | Paul Smith <psmith@gnu.org> | 2000-06-22 00:45:34 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2000-06-22 00:45:34 +0000 |
commit | cbe92a2241253145fbd11e32ed1f7efcb31ba91c (patch) | |
tree | 493f0bf6d3b1fd7ac1cd959d4dc94100b08ca7c5 /tests | |
parent | d5f7eb28977b217ad389aa775832fa28071e1ede (diff) | |
download | gunmake-cbe92a2241253145fbd11e32ed1f7efcb31ba91c.tar.gz |
* Fix PR/1709.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 5 | ||||
-rw-r--r-- | tests/scripts/features/targetvars | 18 |
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index 9c8e7fb..458b0e0 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2000-06-21 Paul D. Smith <psmith@gnu.org> + + * scripts/features/targetvars: Added a test for PR/1709: allowing + semicolons in target-specific variable values. + 2000-06-19 Paul D. Smith <psmith@gnu.org> * scripts/functions/addsuffix: Test for an empty final argument. diff --git a/tests/scripts/features/targetvars b/tests/scripts/features/targetvars index e4dc0b2..52548f2 100644 --- a/tests/scripts/features/targetvars +++ b/tests/scripts/features/targetvars @@ -146,9 +146,27 @@ close(MAKEFILE); $answer = "bar baz biz\nbar baz\n"; &compare_output($answer, &get_logfile(1)); +# Test #10 + &run_make_with_options("$makefile3", "one", &get_logfile); $answer = "bar biz\n"; &compare_output($answer, &get_logfile(1)); +# Test #11 +# PR/1709: Test semicolons in target-specific variable values + +$makefile4 = &get_tmpfile; + +open(MAKEFILE, "> $makefile4"); +print MAKEFILE <<'EOF'; +foo : FOO = ; ok +foo : ; @echo '$(FOO)' +EOF +close(MAKEFILE); + +&run_make_with_options("$makefile4", "", &get_logfile); +$answer = "; ok\n"; +&compare_output($answer, &get_logfile(1)); + 1; |