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.
/* 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. */