X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-vfprintf-posix.c;h=deb3e3748f06ea13a1c9beec622363034a61b39a;hb=2bc9cabc544597791089f579a5a6d025792f47dc;hp=2af148df6e2bb8ca779fcebe73456247e32d0eb0;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/tests/test-vfprintf-posix.c b/tests/test-vfprintf-posix.c index 2af148df6..deb3e3748 100644 --- a/tests/test-vfprintf-posix.c +++ b/tests/test-vfprintf-posix.c @@ -1,5 +1,5 @@ /* Test of POSIX compatible vfprintf() function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2008 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,7 +22,6 @@ #include #include -#include #include #include #include @@ -33,11 +32,14 @@ if (!(expr)) \ { \ fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ + fflush (stderr); \ abort (); \ } \ } \ while (0) +#include "test-fprintf-posix.h" + static int my_fprintf (FILE *fp, const char *format, ...) { @@ -50,8 +52,6 @@ my_fprintf (FILE *fp, const char *format, ...) return ret; } -#include "test-fprintf-posix.h" - int main (int argc, char *argv[]) {