X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-vsprintf-posix.c;h=9f35b3c370a2cf8b7eb0b621fce53419ba490d98;hb=fa1db0dd22768f09a507674a30beb5b8a87bb35f;hp=959412f5ee23cba692d8afefc6f5b810d2a318da;hpb=ee5c41a1aaa71b97b9db53568897f2ad7ecf1823;p=gnulib.git diff --git a/tests/test-vsprintf-posix.c b/tests/test-vsprintf-posix.c index 959412f5e..9f35b3c37 100644 --- a/tests/test-vsprintf-posix.c +++ b/tests/test-vsprintf-posix.c @@ -1,5 +1,5 @@ /* Test of POSIX compatible vsprintf() function. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2013 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,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (vsprintf, int, (char *, char const *, va_list)); + #include #include #include @@ -27,18 +30,7 @@ #include #include -#define SIZEOF(array) (sizeof (array) / sizeof (array[0])) -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" #include "test-sprintf-posix.h"