]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix LINENO testsuite failure.
authorEric Blake <ebb9@byu.net>
Fri, 31 Oct 2008 00:50:39 +0000 (18:50 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 31 Oct 2008 00:50:39 +0000 (18:50 -0600)
* tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
undocumented _AS_PREPARE, and move unset earlier in script.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
tests/m4sh.at

index b1be7a5b5274f1a055f55b40ab8bdc12929849ca..457d7111466a4de2b772a2903ed578a343197350 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-10-30  Eric Blake  <ebb9@byu.net>
 
+       Fix LINENO testsuite failure.
+       * tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
+       undocumented _AS_PREPARE, and move unset earlier in script.
+
        Update LINENO documentation.
        * doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
        (Special Shell Variables) <LINENO>: Mention that LINENO support in
index e90e23193cca6a5c1dcabb988860cd2e59bb68ab..55363d8a8e325ca062b01523f40c4f02c6bec9f7 100644 (file)
@@ -52,10 +52,12 @@ AT_CHECK([test -n "${ZSH_VERSION+set}" && exit 77], ignore)
 m4_define([AT_DATA_LINENO],
 [AT_DATA([$1.tas],
 [[AS@&t@_INIT
+m4@&t@_divert_text([0], [
 if $2; then
   AS@&t@_UNSET([LINENO])
 fi
-_AS@&t@_PREPARE
+])
+AS@&t@_LINENO_PREPARE
 echo "Line: $3"
 grep 'Line: .*$4' "$[0]" >/dev/null ||
   AS@&t@_ERROR([cannot find original script])