[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new module 'fbufmode'
From: |
Bruno Haible |
Subject: |
Re: new module 'fbufmode' |
Date: |
Fri, 27 Apr 2007 12:59:10 +0200 |
User-agent: |
KMail/1.5.4 |
This fixes a test failure of 'fbufmode' on mingw.
2007-04-27 Bruno Haible <address@hidden>
* tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
*** tests/test-fbufmode.c 23 Apr 2007 07:56:34 -0000 1.2
--- tests/test-fbufmode.c 27 Apr 2007 10:28:33 -0000
***************
*** 52,58 ****
/* This setvbuf call can fail, e.g. on HP-UX 11. */
if (setvbuf (fp, buf, _IOLBF, 5) == 0)
{
! ASSERT (fbufmode (fp) == _IOLBF);
}
/* This setvbuf call can fail, e.g. on HP-UX 11. */
--- 52,60 ----
/* This setvbuf call can fail, e.g. on HP-UX 11. */
if (setvbuf (fp, buf, _IOLBF, 5) == 0)
{
! /* 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. */