diff options
author | Paul Smith <psmith@gnu.org> | 2010-11-30 14:48:52 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2010-11-30 14:48:52 +0000 |
commit | ae2ab76faca93cad3059808b14d02f5565275e31 (patch) | |
tree | 3c4065c573c2e2af58596efedaa0595f793f7f04 /tests/scripts/features | |
parent | 391456aad790172c3cbbceb5544dd785c0e60a99 (diff) | |
download | gunmake-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/features')
-rw-r--r-- | tests/scripts/features/targetvars | 10 |
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! |