From bde826b18aeb6fd3c9de7a7733d1e163efde90e1 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Fri, 17 Feb 2006 13:29:52 +0000 Subject: Make sure we don't introduce a circularity into the variable set linked list. Fixes Savannah bug #15757. --- tests/scripts/features/targetvars | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/scripts/features/targetvars') diff --git a/tests/scripts/features/targetvars b/tests/scripts/features/targetvars index 3989340..c22ce13 100644 --- a/tests/scripts/features/targetvars +++ b/tests/scripts/features/targetvars @@ -267,4 +267,29 @@ close(MAKEFILE); $answer = "no build information\n"; &compare_output($answer, &get_logfile(1)); +# TEST #17 + +# Test a merge of set_lists for files, where one list is much longer +# than the other. See Savannah bug #15757. + +mkdir('t1'); +touch('t1/rules.mk'); + +run_make_test(' +VPATH = t1 +include rules.mk +.PHONY: all +all: foo.x +foo.x : rules.mk ; @echo MYVAR=$(MYVAR) FOOVAR=$(FOOVAR) ALLVAR=$(ALLVAR) +all: ALLVAR = xxx +foo.x: FOOVAR = bar +rules.mk : MYVAR = foo +.INTERMEDIATE: foo.x rules.mk +', + '-I t1', + 'MYVAR= FOOVAR=bar ALLVAR=xxx'); + +rmfiles('t1/rules.mk'); +rmdir('t1'); + 1; -- cgit v1.2.3