Relax test, to avoid failure on mingw.
authorBruno Haible <bruno@clisp.org>
Fri, 27 Apr 2007 10:59:36 +0000 (10:59 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 27 Apr 2007 10:59:36 +0000 (10:59 +0000)
ChangeLog
tests/test-fbufmode.c

index 9095c36..db350c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-04-27  Bruno Haible  <bruno@clisp.org>
 
+       * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
+
+2007-04-27  Bruno Haible  <bruno@clisp.org>
+
        * lib/fflush.c: Add comments.
        * modules/fpurge-tests (Depends-on): Add fflush.
        * modules/freadable-tests (Depends-on): Likewise.
index af4fa88..cbdf29d 100644 (file)
@@ -52,7 +52,9 @@ main ()
   /* This setvbuf call can fail, e.g. on HP-UX 11.  */
   if (setvbuf (fp, buf, _IOLBF, 5) == 0)
     {
-      ASSERT (fbufmode (fp) == _IOLBF);
+      /* mingw's setvbuf implements _IOLBF the same way as _IOFBF.  */
+      ASSERT (fbufmode (fp) == _IOLBF
+             || fbufmode (fp) == _IOFBF);
     }
 
   /* This setvbuf call can fail, e.g. on HP-UX 11.  */