From 2ce00b8afdc3a2d5e908de625c8d2bc31db7609e Mon Sep 17 00:00:00 2001 From: Derek Price Date: Mon, 18 Aug 2003 16:48:26 +0000 Subject: [PATCH] * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL & RUN-IF-PASS optional arguments. --- ChangeLog | 5 +++++ doc/autoconf.texi | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 76eba814..74981545 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-08-18 Derek Price + + * doc/autoconf.texi (Writing testsuite.at): Document RUN-IF-FAIL & + RUN-IF-PASS optional arguments. + 2003-08-18 Derek Price * doc/autoconf.texi (Programming in M4sh): Add doc for AS_IF. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 0ea3f00b..afffdf8b 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -14408,12 +14408,14 @@ brackets to protect against included commas or spurious M4 expansion. The contents ought to end with an end of line. @end defmac -@defmac AT_CHECK (@var{commands}, @dvar{status, @samp{0}}, @dvar{stdout, @samp{}}, @dvar{stderr, @samp{}}) +@defmac AT_CHECK (@var{commands}, @dvar{status, @samp{0}}, @dvar{stdout, @samp{}}, @dvar{stderr, @samp{}}, @ovar{run-if-fail}, @ovar{run-if-pass}) @atindex CHECK Execute a test by performing given shell @var{commands}. These commands should normally exit with @var{status}, while producing expected @var{stdout} and @var{stderr} contents. If @var{commands} exit with -status 77, then the whole test group is skipped. +status 77, then the whole test group is skipped. Otherwise, if this test +fails, run shell commands @var{run-if-fail} or, if this test passes, run shell +commands @var{run-if-pass}. The @var{commands} @emph{must not} redirect the standard output, nor the standard error. -- 2.47.2