Mercurial > hg > octave-shane > gnulib-hg
changeset 11030:bb4a06b3e8fb
Avoid test-fflush2.sh failure on mingw.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 17 Jan 2009 16:39:41 +0100 |
parents | 10f80546fa7e |
children | f33575c28e6c |
files | ChangeLog modules/fflush-tests tests/test-fflush2.c |
diffstat | 3 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-01-17 Bruno Haible <bruno@clisp.org> + + Avoid test-fflush2.sh failure on mingw. + * tests/test-fflush2.c: Include binary-io.h. + (main): Put standard input into binary mode. + * modules/fflush-tests (Depends-on): Add binary-io. + 2009-01-17 Bruno Haible <bruno@clisp.org> * lib/wchar.in.h: In another particular situation, include only the
--- a/modules/fflush-tests +++ b/modules/fflush-tests @@ -4,6 +4,7 @@ tests/test-fflush2.c Depends-on: +binary-io fseeko configure.ac:
--- a/tests/test-fflush2.c +++ b/tests/test-fflush2.c @@ -20,6 +20,8 @@ #include <stdlib.h> +#include "binary-io.h" + #define ASSERT(expr) \ do \ { \ @@ -37,6 +39,10 @@ { int c; + /* Avoid the well-known bugs of fflush() on streams in O_TEXT mode + on native Windows platforms. */ + SET_BINARY (0); + if (argc > 1) switch (argv[1][0]) {