X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-xprintf-posix.c;h=87dfbf64d8b864ef75144e1acb0d426428bc413b;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=a935e3253548694d297cd3a9e2e0ac567c0b9783;hpb=8c5e6f236e3e1d15b0ddf4b2e7305d1e3a7fe77a;p=gnulib.git diff --git a/tests/test-xprintf-posix.c b/tests/test-xprintf-posix.c index a935e3253..87dfbf64d 100644 --- a/tests/test-xprintf-posix.c +++ b/tests/test-xprintf-posix.c @@ -1,5 +1,5 @@ /* Test of error-checking xprintf() function with POSIX compatible formatting. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2014 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,28 +21,16 @@ #include "xprintf.h" #include -#include #include -#include #include #include "progname.h" - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" #include "test-printf-posix.h" int -main (int argc, char *argv[]) +main (int argc _GL_UNUSED, char *argv[]) { set_program_name (argv[0]);