X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-xprintf-posix.c;h=501f04ad5045c28361f97d7a8707619047307517;hb=89ae4589dd58d12e7cbcf0e92c1d828c1e430f97;hp=a935e3253548694d297cd3a9e2e0ac567c0b9783;hpb=8c5e6f236e3e1d15b0ddf4b2e7305d1e3a7fe77a;p=gnulib.git diff --git a/tests/test-xprintf-posix.c b/tests/test-xprintf-posix.c index a935e3253..501f04ad5 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-2009 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 @@ -29,20 +29,21 @@ #include "progname.h" #define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ + do \ + { \ + if (!(expr)) \ + { \ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ + fflush (stderr); \ + abort (); \ + } \ + } \ while (0) #include "test-printf-posix.h" int -main (int argc, char *argv[]) +main (int argc _GL_UNUSED, char *argv[]) { set_program_name (argv[0]);