m4-commit
[Top][All Lists]
Advanced

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

Changes to m4/tests/others.at,v


From: Eric Blake
Subject: Changes to m4/tests/others.at,v
Date: Wed, 11 Apr 2007 15:48:10 +0000

CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Eric Blake <ericb>      07/04/11 15:48:09

Index: tests/others.at
===================================================================
RCS file: /sources/m4/m4/tests/others.at,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- tests/others.at     5 Feb 2007 17:31:10 -0000       1.31
+++ tests/others.at     11 Apr 2007 15:48:09 -0000      1.32
@@ -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]