autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: testing Autoconf with awk


From: Ralf Wildenhues
Subject: Re: testing Autoconf with awk
Date: Thu, 14 Dec 2006 20:42:50 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* Tim Rice wrote on Thu, Dec 14, 2006 at 03:15:29AM CET:
> On Wed, 13 Dec 2006, Ralf Wildenhues wrote:
> > 
> > > Test 100 failed.
> > 
> > Please show the testsuite.log of the failure.
> Attached as sco507-testsuite.log.gz

Thanks.  Please try this patch.

Cheers,
Ralf

2006-12-14  Ralf Wildenhues  <address@hidden>

        * tests/torture.at (Substitute a 2000-byte string): Avoid using
        a 10kB long (multi-line) string literal, OpenServer 5.0.7 ksh
        dumps core on it.  Report by Tim Rice.

Index: tests/torture.at
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/torture.at,v
retrieving revision 1.78
diff -u -r1.78 torture.at
--- tests/torture.at    7 Dec 2006 05:17:00 -0000       1.78
+++ tests/torture.at    14 Dec 2006 19:38:05 -0000
@@ -562,8 +562,10 @@
 AC_CONFIG_AUX_DIR($top_srcdir/build-aux)
 AC_SUBST([foo], ]m4_for([n], 1, 100,, ....................)[)
 AC_SUBST([bar], "]m4_for([n], 1, 100,, @ @ @ @ @ @ @ @ @ @@)[")
-AC_SUBST([baz], "]m4_for([n], 1, 5,, m4_for([m], 1, 100,, ... ... ... ... ....)
-)[")
+baz="]m4_for([m], 1, 100,, ... ... ... ... ....)[
+"
+baz=$baz$baz$baz$baz$baz
+AC_SUBST([baz])
 AC_PROG_AWK
 AC_CONFIG_FILES([Foo Bar Baz])
 AC_OUTPUT
@@ -577,9 +579,10 @@
 )
   AT_CHECK([cat Bar], 0, m4_for([n], 1, 100,, @ @ @ @ @ @ @ @ @ @@)
 )
-  AT_CHECK([cat Baz], 0, m4_for([n], 1, 5,, m4_for([m], 1, 100,, ... ... ... 
... ....)
-)
-)
+  AT_DATA([stdout],
+  [m4_for([n], 1, 5,, m4_for([m], 1, 100,, ... ... ... ... ....)
+)])
+  AT_CHECK([cat Baz], 0, [stdout])
 done
 AT_CLEANUP
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]