From 9bae9af00759276ab4618ae5d80777d08c1b9ca5 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 6 Dec 2000 08:59:21 +0000 Subject: [PATCH] * tests/atgeneral.m4 (AT_CHECK): Fix the m4_ifval invocation. --- ChangeLog | 4 ++++ lib/autotest/general.m4 | 9 ++++----- tests/atgeneral.m4 | 9 ++++----- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index cf9e8b56..5d1428db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-12-06 Akim Demaille + + * tests/atgeneral.m4 (AT_CHECK): Fix the m4_ifval invocation. + 2000-12-06 Akim Demaille * aclang.m4 (AC_LANG): Be `smart': don't issue the sh code if the diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index efc7e114..e95a6834 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -427,8 +427,8 @@ echo AT_LINE >at-check-line $at_check_stds && exec 5>&1 6>&2 1>stdout 2>stderr $at_traceon $1 -m4_ifval([$2], - [at_status=$? +m4_ifvaln([$2], + [at_status=$? $at_traceoff if test $at_status != $2; then $at_verbose "Exit code was $at_status, expected $2" >&6 @@ -437,9 +437,8 @@ dnl Maybe there was an important message to read before it died. dnl Preserve exit code 77. test $at_status = 77 && exit 77 exit 1 -fi -], - [$at_traceoff])dnl +fi], + [$at_traceoff])[]dnl if $at_check_stds; then dnl Restore stdout to fd1 and stderr to fd2. exec 1>&5 2>&6 diff --git a/tests/atgeneral.m4 b/tests/atgeneral.m4 index efc7e114..e95a6834 100644 --- a/tests/atgeneral.m4 +++ b/tests/atgeneral.m4 @@ -427,8 +427,8 @@ echo AT_LINE >at-check-line $at_check_stds && exec 5>&1 6>&2 1>stdout 2>stderr $at_traceon $1 -m4_ifval([$2], - [at_status=$? +m4_ifvaln([$2], + [at_status=$? $at_traceoff if test $at_status != $2; then $at_verbose "Exit code was $at_status, expected $2" >&6 @@ -437,9 +437,8 @@ dnl Maybe there was an important message to read before it died. dnl Preserve exit code 77. test $at_status = 77 && exit 77 exit 1 -fi -], - [$at_traceoff])dnl +fi], + [$at_traceoff])[]dnl if $at_check_stds; then dnl Restore stdout to fd1 and stderr to fd2. exec 1>&5 2>&6