X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-freadseek.c;h=9510c2cfa2b3568cd60acb702c7e5e07519e23be;hb=71af89e818c5673a6b3ded7f9dbd78015222fb90;hp=f7d349a281e2c88cd88a9a26fe3ef9781cb4c0e3;hpb=e220635fc952c63b533873f2af39ec76aed4b4e3;p=gnulib.git diff --git a/tests/test-freadseek.c b/tests/test-freadseek.c index f7d349a28..9510c2cfa 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-2011 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 @@ -25,17 +25,7 @@ #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main (int argc, char **argv) @@ -92,10 +82,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; }