X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-vfprintf-posix.c;h=1db31126edb9ad9869932c5b059f1493c722bfed;hb=7d68533bb99e3d1c8a83bea02ea7cf402125777c;hp=2af148df6e2bb8ca779fcebe73456247e32d0eb0;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/tests/test-vfprintf-posix.c b/tests/test-vfprintf-posix.c index 2af148df6..1db31126e 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-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 @@ -20,23 +20,17 @@ #include +#include "signature.h" +SIGNATURE_CHECK (vfprintf, int, (FILE *, char const *, va_list)); + #include #include -#include #include -#include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" + +#include "test-fprintf-posix.h" static int my_fprintf (FILE *fp, const char *format, ...) @@ -50,8 +44,6 @@ my_fprintf (FILE *fp, const char *format, ...) return ret; } -#include "test-fprintf-posix.h" - int main (int argc, char *argv[]) {