X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-dprintf-posix.c;h=8133cbf6b6882e1c9308bd589e79a0880b225d3d;hb=84e7e349505e6961cc62fded69ba277474cc3d35;hp=384d1efafc5370195dc8577a36a9957ab92b8976;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-dprintf-posix.c b/tests/test-dprintf-posix.c index 384d1efaf..8133cbf6b 100644 --- a/tests/test-dprintf-posix.c +++ b/tests/test-dprintf-posix.c @@ -1,5 +1,5 @@ /* Test of POSIX compatible dprintf() function. - Copyright (C) 2007-2009 Free Software Foundation, Inc. + Copyright (C) 2007-2010 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,22 +20,14 @@ #include +#include "signature.h" +SIGNATURE_CHECK (dprintf, int, (int, const char *, ...)); + #include #include -#include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" static void test_function (int (*my_dprintf) (int, const char *, ...))