From 1f16ee5c2d482a75504fbbcf70e9e2a44acc1339 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 21 Jan 2004 06:32:59 +0000 Subject: Many bug fixes etc. - Apply a fix for the "thundering herd" problem when using "-j -l". This also fixes bug #4693. - Fix bug #7257: allow functions as ifdef arguments - Fix bug #4518: make sure we print all double-colon rules with -p. - Upgrade to autconf 2.58/automake 1.8/gettext 0.13.1 - Various doc cleanups, etc. --- tests/ChangeLog | 6 ++++++ tests/scripts/features/conditionals | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/ChangeLog b/tests/ChangeLog index 76e725d..b20f46f 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,9 @@ +2004-01-21 Paul D. Smith + + * scripts/features/conditionals: Test arguments to ifn?def which + contain whitespace (such as a function that is evaluated). Bug + #7257. + 2004-01-07 Paul D. Smith * scripts/features/order_only: Test order-only prerequisites in diff --git a/tests/scripts/features/conditionals b/tests/scripts/features/conditionals index 9aad1d1..36cba23 100644 --- a/tests/scripts/features/conditionals +++ b/tests/scripts/features/conditionals @@ -85,14 +85,21 @@ ifdef $(F)oo DEF2 = yes endif -all:; @echo DEF=$(DEF) DEF2=$(DEF2) + +DEF3 = no +FUNC = $1 +ifdef $(call FUNC,DEF)3 + DEF3 = yes +endif + +all:; @echo DEF=$(DEF) DEF2=$(DEF2) DEF3=$(DEF3) EOF close(MAKEFILE) &run_make_with_options($makefile2,"",&get_logfile,0); -$answer = "DEF=yes DEF2=yes\n"; +$answer = "DEF=yes DEF2=yes DEF3=yes\n"; &compare_output($answer,&get_logfile(1)); -- cgit v1.2.3