X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-freadseek.c;h=7071909051290ff52276428af1708d46ef4301bc;hb=b015db270e6b2937105daf6f4f632cda339c95e2;hp=ffe3cecfc81705ee752f4d97e35d291dbc5e9c1e;hpb=ba35bf7ef0946a29865ec26c466c4bb240ebf388;p=gnulib.git diff --git a/tests/test-freadseek.c b/tests/test-freadseek.c index ffe3cecfc..707190905 100644 --- a/tests/test-freadseek.c +++ b/tests/test-freadseek.c @@ -1,5 +1,5 @@ /* Test of freadseek() function. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -31,6 +31,7 @@ if (!(expr)) \ { \ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ + fflush (stderr); \ abort (); \ } \ } \ @@ -91,10 +92,12 @@ main (int argc, char **argv) ASSERT (fgetc (stdin) == EOF); ASSERT (!ferror (stdin)); +#if !defined __MINT__ /* FreeMiNT has problems seeking past end of file */ /* Test move beyond end of file. */ ASSERT (freadseek (stdin, 1000000) == 0); ASSERT (fgetc (stdin) == EOF); ASSERT (!ferror (stdin)); +#endif return 0; }