X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-xfprintf-posix.c;h=e766f46a0f42f8c7edebb36ca61095dd254bf464;hb=972228da936bd54d6cf64f8b56c03a13ee4603e6;hp=adfa1fd0551cba8b6ea601ef4dd7c63a9fc76ba7;hpb=e220635fc952c63b533873f2af39ec76aed4b4e3;p=pspp diff --git a/tests/test-xfprintf-posix.c b/tests/test-xfprintf-posix.c index adfa1fd055..e766f46a0f 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-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 @@ -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]);