summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2016-05-21 13:08:34 -0400
committerPaul Smith <psmith@gnu.org>2016-05-21 16:22:32 -0400
commite2ebea35f11059e888b2fe2bfc8b24fda48c1f88 (patch)
treee79a36cc4c885fcad80b240edd878604648bdd2e /tests
parentc73ed7dd1cda65463e9ed8b99bcd4a7d9195d7fa (diff)
* read.c (eval): [SV 47960] Skip record waiting files when ignoring.
* tests/scripts/features/conditionals: Test this scenario.
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/features/conditionals16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/scripts/features/conditionals b/tests/scripts/features/conditionals
index 2ece60bb..78344b93 100644
--- a/tests/scripts/features/conditionals
+++ b/tests/scripts/features/conditionals
@@ -141,6 +141,22 @@ all: ; @:',
'',
'success');
+# SV 47960 : ensure variable assignments in non-taken legs don't cause problems
+run_make_test('
+ifneq ($(FOO),yes)
+target:
+else
+BAR = bar
+target:
+endif
+ @echo one
+',
+ '', "one\n");
+
# This tells the test driver that the perl test script executed properly.
1;
+
+### Local Variables:
+### eval: (setq whitespace-action (delq 'auto-cleanup whitespace-action))
+### End: