[Top][All Lists]

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

Re: stdout full [was: HEAD: inclusion order wrong for input.c]

From: Eric Blake
Subject: Re: stdout full [was: HEAD: inclusion order wrong for input.c]
Date: Wed, 11 Apr 2007 15:47:35 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Eric Blake <ebb9 <at> byu.net> writes:

> >> Here's another iteration (and it should go faster, by showing me ALL of
> >> the stderr, rather than giving up at the first mismatch - fun with cheap
> >> m4 tricks).
> > 
> > Here's the output with that patch applied instead:
> Thanks for the output.  I'll have a patch soon.

2007-04-11  Eric Blake  <address@hidden>

        Address testsuite shortcoming in 'stdout full' on glibc.
        * tests/others.at (stdout full): Adjust expected output when more
        than 1k text is printed to /dev/full.
        Reported by Ralf Wildenhues.

Index: tests/others.at
RCS file: /sources/m4/m4/tests/others.at,v
retrieving revision 1.31
diff -u -r1.31 others.at
--- tests/others.at     5 Feb 2007 17:31:10 -0000       1.31
+++ tests/others.at     11 Apr 2007 15:46:28 -0000
@@ -609,10 +609,14 @@
   exit 77
+dnl Be careful when modifying these tests.  Writes that exceed stdio buffering
+dnl limits trigger different but legal behavior where errno is lost.  Tests
+dnl that currently require "No space left on device" may fail if the amount of
+dnl output changes.  The --help test shows how to handle this.
 dnl detect write failures on --help
-AT_CHECK_M4([--help >/dev/full], [1], [],
-[[m4: write error: No space left on device
+AT_CHECK_M4([--help >/dev/full], [1], [], [stderr])
+AT_CHECK([grep '^m4: write error' stderr], [0], [ignore])
 dnl detect write failures on --version
 AT_CHECK_M4([--version >/dev/full], [1], [],

reply via email to

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