X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-vfprintf-posix.c;h=262ba17ace3741fdc0301133a1e7b67ad3aa0c92;hb=e6bf8b0764b43ff4ce477b80187a3765b6d2135b;hp=2af148df6e2bb8ca779fcebe73456247e32d0eb0;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/tests/test-vfprintf-posix.c b/tests/test-vfprintf-posix.c index 2af148df6..262ba17ac 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 @@ -33,11 +33,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 +53,6 @@ my_fprintf (FILE *fp, const char *format, ...) return ret; } -#include "test-fprintf-posix.h" - int main (int argc, char *argv[]) {