>>>>> "Patrick" == Patrick Welche <[EMAIL PROTECTED]> writes:
Patrick> On Thu, Apr 18, 2002 at 05:40:25PM +0200, Akim Demaille
Patrick> wrote:
>> Heck, it is right! How come I did not see that failure :(
>>
>> Try this one.
Patrick> It seems to do the same as before..
I've changed of strategy: I'm applying this patch as soon as I have
checked that it works as expected. Thanks!
Index: ChangeLog
from Akim Demaille <[EMAIL PROTECTED]>
* tests/m4sh.at (LINENO): Skip the test if LINENO cannot be unset.
Fixes false failures on Darwin.
Index: tests/m4sh.at
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/m4sh.at,v
retrieving revision 1.30
diff -u -u -r1.30 m4sh.at
--- tests/m4sh.at 21 Apr 2002 07:25:21 -0000 1.30
+++ tests/m4sh.at 22 Apr 2002 09:11:45 -0000
@@ -45,6 +45,11 @@
[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
@@ -84,8 +89,8 @@
0, [expout])
AT_CHECK([sh ./test/test-2], 0, [expout])
-# Beware that *.lineno scripts can be *here* while the masters are in test/.
-AT_CLEANUP(reference test test-1.lineno test-2.lineno)
+AT_CLEANUP
+
## ------------ ##
@@ -232,7 +237,7 @@
AT_CHECK_M4SH
AT_CHECK([./script])
-AT_CLEANUP(1 a)
+AT_CLEANUP