X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-freadable.c;h=8f337d88e60e0833e5f0077ea081feae9824064c;hb=d6b7bf83fda294dd77ce90aac0bcd73a7626894d;hp=4264cce33764c3a0d623df24ad0ded4e208b63a2;hpb=e220635fc952c63b533873f2af39ec76aed4b4e3;p=gnulib.git diff --git a/tests/test-freadable.c b/tests/test-freadable.c index 4264cce33..8f337d88e 100644 --- a/tests/test-freadable.c +++ b/tests/test-freadable.c @@ -1,5 +1,5 @@ /* Test of freadable() function. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2010 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 @@ -21,19 +21,14 @@ #include "freadable.h" #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" + +/* None of the files accessed by this test are large, so disable the + fseek link warning if we are not using the gnulib fseek module. */ +#if !GNULIB_FSEEK +# undef fseek +#endif #define TESTFILE "t-freadable.tmp"