X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-vprintf-posix.c;h=f64bf831ee30f92b34660dfc488815e7837a4260;hb=2f34c96410ed6ec496cd128d03e3a0026c20d104;hp=78a250614a075b146f1f9e17d9b9c0bd3f282422;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/tests/test-vprintf-posix.c b/tests/test-vprintf-posix.c index 78a250614..f64bf831e 100644 --- a/tests/test-vprintf-posix.c +++ b/tests/test-vprintf-posix.c @@ -1,5 +1,5 @@ /* Test of POSIX compatible vfprintf() function. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2012 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 (vprintf, int, (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-printf-posix.h" static int my_printf (const char *format, ...) @@ -50,8 +44,6 @@ my_printf (const char *format, ...) return ret; } -#include "test-printf-posix.h" - int main (int argc, char *argv[]) {