summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2010-11-30 14:48:52 +0000
committerPaul Smith <psmith@gnu.org>2010-11-30 14:48:52 +0000
commitae2ab76faca93cad3059808b14d02f5565275e31 (patch)
tree3c4065c573c2e2af58596efedaa0595f793f7f04 /tests/scripts
parent391456aad790172c3cbbceb5544dd785c0e60a99 (diff)
downloadgunmake-ae2ab76faca93cad3059808b14d02f5565275e31.tar.gz
Check if the target-specific variable is the same as the global
variable, and if so don't try to update it. Savannah bug #31743.
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/features/targetvars10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/scripts/features/targetvars b/tests/scripts/features/targetvars
index 6afd48a..a9b8dbe 100644
--- a/tests/scripts/features/targetvars
+++ b/tests/scripts/features/targetvars
@@ -237,6 +237,16 @@ a: ; @echo "$(FOO)"
run_make_test(undef, 'FOO=C', "C f1\n");
+# TEST #19: Conditional variables with command-line settings
+
+run_make_test('
+a: FOO ?= f1
+a: ; @echo "$(FOO)"
+',
+ '', "f1\n");
+
+run_make_test(undef, 'FOO=C', "C\n");
+
# TEST #20: Check for continuation after semicolons
run_make_test(q!