X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-xprintf-posix.c;h=c907356f8cc7dd2f290a22ac22bca1da73a4fb96;hb=6431e530dc003dcdec5ac106607567446fd4b82a;hp=501f04ad5045c28361f97d7a8707619047307517;hpb=169ab5dec0e562548959482e3ff63c96c340e0d1;p=gnulib.git diff --git a/tests/test-xprintf-posix.c b/tests/test-xprintf-posix.c index 501f04ad5..c907356f8 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-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 @@ -21,24 +21,11 @@ #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__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" #include "test-printf-posix.h"