X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-xfprintf-posix.c;h=b8fc6ed2d79597d0cd6edfd126d263b0228e4793;hb=6d273bef42e648ae9bd1d60923d2a4c8fc5dca94;hp=adfa1fd0551cba8b6ea601ef4dd7c63a9fc76ba7;hpb=e220635fc952c63b533873f2af39ec76aed4b4e3;p=gnulib.git diff --git a/tests/test-xfprintf-posix.c b/tests/test-xfprintf-posix.c index adfa1fd05..b8fc6ed2d 100644 --- a/tests/test-xfprintf-posix.c +++ b/tests/test-xfprintf-posix.c @@ -1,5 +1,5 @@ /* Test of error-checking xfprintf() function with POSIX compatible formatting. - 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 @@ -22,29 +22,16 @@ #include #include -#include #include -#include #include #include "progname.h" - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" #include "test-fprintf-posix.h" int -main (int argc, char *argv[]) +main (int argc _GL_UNUSED, char *argv[]) { set_program_name (argv[0]);