X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-xfprintf-posix.c;h=b8fc6ed2d79597d0cd6edfd126d263b0228e4793;hb=bf9c9b72edc4f0614fdb17c1ee33bf9ea4e42cfa;hp=70fb93adbe69096ea53847c1d28859742497ad45;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-xfprintf-posix.c b/tests/test-xfprintf-posix.c index 70fb93adb..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-2009 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 _UNUSED_PARAMETER_, char *argv[]) +main (int argc _GL_UNUSED, char *argv[]) { set_program_name (argv[0]);