X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sprintf-posix.c;h=db943da2e06e380f016bbdb3a6c5b277046d36f2;hb=880d107;hp=e5dab357c6307cb120e5f24c6226beab7b795be5;hpb=2d4d7d9d00fe33b6f5291e00a30b6c1016775b74;p=gnulib.git diff --git a/tests/test-sprintf-posix.c b/tests/test-sprintf-posix.c index e5dab357c..db943da2e 100644 --- a/tests/test-sprintf-posix.c +++ b/tests/test-sprintf-posix.c @@ -1,5 +1,5 @@ /* Test of POSIX compatible sprintf() function. - Copyright (C) 2007-2008 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,24 +20,16 @@ #include +#include "signature.h" +SIGNATURE_CHECK (sprintf, int, (char *, char const *, ...)); + #include #include #include #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"