autoconf-patches
[Top][All Lists]
Advanced

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

Re: Add tests for unusual substitutions and defines, Autotest


From: Noah Misch
Subject: Re: Add tests for unusual substitutions and defines, Autotest
Date: Sat, 5 Feb 2005 09:32:53 -0800
User-agent: Mutt/1.5.6i

On Fri, Feb 04, 2005 at 11:35:44PM -0800, Paul Eggert wrote:
> Thanks.  One minor point: that patch isn't portable since it genertes
> a testsuite file that contains very long lines, and POSIX says that
> text lines longer than 2048 bytes are not portable.  I shrank every 64
> KiB string down to a 2000-byte string (which I realize won't catch
> some of the bugs you're looking for, but I hope it's better than
> nothing) and installed the following slightly-modified version of that
> patch.

A 2000-byte test seems useful.  That ought to pass everywhere; if it does not,
bug-autoconf could use hearing about it.

According to POSIX, `The input file [for `sh'] shall be a text file, except that
line lengths shall be unlimited.'  That keeps `testsuite' valid, but we
currently `echo' the long string, so it should not exceed ARG_MAX at a
_POSIX_ARG_MAX minimum of 4096.

OTOH, every M4SH script, including `testsuite', could become input to `sed' to
create its .lineno twin.  To be entirely proper, then, M4SH scripts must observe
every text file restriction.  %-6

I'll try to post a patch adding a portable 64 KiB check.




reply via email to

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