From 8bbdbb02b30ffd39c2fac9259b3a91cb62e1711d Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 13 Oct 2002 18:50:10 +0000 Subject: Fix bug#1379: don't use alloca() where it could overrun the stack size. Implemented enhancement #1391: allow "export" in target-specific variable definitions. Change the Info name of the "Automatic" node to "Automatic Variables". Add text clarifying the scope of automatic variables to that section. --- tests/ChangeLog | 5 +++++ tests/scripts/features/targetvars | 8 ++++++++ 2 files changed, 13 insertions(+) (limited to 'tests') diff --git a/tests/ChangeLog b/tests/ChangeLog index 2c39999..3c62080 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2002-10-13 Paul D. Smith + + * scripts/features/targetvars: Add a test for exporting + target-specific vars (Bug #1391). + 2002-10-05 Paul D. Smith * scripts/variables/automatic: Add tests for $$(@), $${@}, $${@D}, diff --git a/tests/scripts/features/targetvars b/tests/scripts/features/targetvars index 06328c2..2375f71 100644 --- a/tests/scripts/features/targetvars +++ b/tests/scripts/features/targetvars @@ -37,6 +37,8 @@ eight: BAR = eight # Test the export keyword with per-target variables nine: ; @echo $(FOO) $(BAR) $$FOO $$BAR nine: FOO = wallace +nine-a: export BAZ = baz +nine-a: ; @echo $$BAZ # Test = escaping EQ = = ten: one\=two @@ -86,6 +88,12 @@ $answer = "eight: seven eight\nseven: seven seven\n"; $answer = "wallace bar wallace bar\n"; &compare_output($answer,&get_logfile(1)); +# TEST #5-a + +&run_make_with_options($makefile, "nine-a", &get_logfile); +$answer = "baz\n"; +&compare_output($answer,&get_logfile(1)); + # TEST #6 &run_make_with_options($makefile, "ten", &get_logfile); -- cgit v1.2.3