From cbe92a2241253145fbd11e32ed1f7efcb31ba91c Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Thu, 22 Jun 2000 00:45:34 +0000 Subject: * Fix PR/1709. --- tests/scripts/features/targetvars | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests/scripts') 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; -- cgit v1.2.3