]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix for Zsh.
authorAkim Demaille <akim@epita.fr>
Mon, 22 Apr 2002 11:15:35 +0000 (11:15 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 22 Apr 2002 11:15:35 +0000 (11:15 +0000)
ChangeLog
tests/m4sh.at

index 8d48352e63bc3330c0dbe86802f56c8136609fc3..26c810eb57aa0c14ae69e27241350f2890e041da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
 
        Version 2.53a.
 
+2002-04-22  Akim Demaille  <akim@epita.fr>
+
+       * tests/m4sh.at (LINENO): Fix the Zsh skip pattern.
+
 2002-04-22  Akim Demaille  <akim@epita.fr>
 
        * doc/autoconf.texi (Pretty Help Strings): Remove a spurious
index a10904e0c15aa740f7bb8e3b3c8d68ca3d9671ac..fb5a34d35e828988656e6e4563ca9692faa73975 100644 (file)
@@ -28,6 +28,12 @@ m4_pattern_allow([^AS_EXIT$])
 
 AT_SETUP([LINENO])
 
+# We cannot unset LINENO with Zsh, yet this test case relies on
+# unsetting LINENO to compare its result when (i) LINENO is supported
+# and when (ii) it is not.
+# So just skip if the shell is ZSH.
+AT_CHECK([test -n "${ZSH_VERSION+set}" && exit 77])
+
 # AT_DATA_LINENO(FILENAME,
 #                UNSET-LINENO = true | false, COUNTER, COUNTER-RE)
 # ----------------------------------------------------------------
@@ -45,11 +51,6 @@ m4_define([AT_DATA_LINENO],
 [AT_DATA([$1],
 [[AS@&t@_INIT
 if $2; then
-  # We cannot unset LINENO with Zsh, yet this test case relies on
-  # unsetting LINENO to compare its result when (i) LINENO is supported
-  # and when (ii) it is not.
-  # So just skip is the shell is ZSH.
-  test -n "${ZSH_VERSION+set}" && AS@&t@_ERROR([cannot unset LINENO], 77)
   AS@&t@_UNSET([LINENO])
 fi
 _AS@&t@_PREPARE