| On Thu, Apr 18, 2002 at 04:08:45PM +0200, Akim Demaille wrote:
| > Could you please try this patch?  Just apply it, and...
| > 
| >         cd tests
| >         make testsuite
| >         ./testsuite -k lineno
| 
| No luck:
| 
| % cd tests
| % gmake testsuite
| ./autom4te --language=autotest -I . suite.at -o testsuite.tmp
| testsuite.tmp:2812: error: possibly undefined macro: AS_ERROR
| gmake: *** [testsuite] Error 1

Heck, it is right!  How come I did not see that failure :(

Try this one.

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.29
diff -u -u -r1.29 m4sh.at
--- tests/m4sh.at 10 Apr 2002 15:58:21 -0000 1.29
+++ tests/m4sh.at 18 Apr 2002 15:39:13 -0000
@@ -45,7 +45,9 @@
 [AT_DATA([$1],
 [[AS@&t@_INIT
 if $2; then
-  AS@&t@_UNSET([LINENO])
+  # If we can't unset LINENO, then this test makes no sense: skip it.
+  AS@&t@_UNSET([LINENO]) ||
+    AS@&t@_ERROR([cannot unset LINENO], 77)
 fi
 _AS@&t@_PREPARE
 echo "Line: $3"
@@ -84,8 +86,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 +234,7 @@
 AT_CHECK_M4SH
 AT_CHECK([./script])
 
-AT_CLEANUP(1 a)
+AT_CLEANUP
 
 
 

Reply via email to