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 9095c369d3696e230e3004d466bf4f723b66aab5..db350c7e77d02806f9b7ac8d996bfa1235d2f3ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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.
index af4fa88b7610365b298206802e7460349bc3c34f..cbdf29d7fe433e9f515784ecfb98235666a33554 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.  */