summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/features/targetvars6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/scripts/features/targetvars b/tests/scripts/features/targetvars
index 52548f2..a1bd88e 100644
--- a/tests/scripts/features/targetvars
+++ b/tests/scripts/features/targetvars
@@ -126,6 +126,7 @@ $answer = "foo bar\n";
# TEST #9
# For PR/1380: Using += assignment in target-specific variables sometimes fails
+# Also PR/1831
$makefile3 = &get_tmpfile;
@@ -138,18 +139,19 @@ all: one; @echo $(FOO)
FOO = bar
one: FOO += biz
+one: FOO += boz
one: ; @echo $(FOO)
EOF
close(MAKEFILE);
&run_make_with_options("$makefile3", "", &get_logfile);
-$answer = "bar baz biz\nbar baz\n";
+$answer = "bar baz biz boz\nbar baz\n";
&compare_output($answer, &get_logfile(1));
# Test #10
&run_make_with_options("$makefile3", "one", &get_logfile);
-$answer = "bar biz\n";
+$answer = "bar biz boz\n";
&compare_output($answer, &get_logfile(1));
# Test #11