X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sprintf-posix.c;h=8544464edccfd4f3bc48e3f4e104360a9b62abd7;hb=cd56634a4a8179fd5a4419fbb3e27211b042ab1c;hp=58319b9612e7d84d6b0e9ebcfcc58441b4f03aa4;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/tests/test-sprintf-posix.c b/tests/test-sprintf-posix.c index 58319b961..8544464ed 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 Free Software Foundation, Inc. + Copyright (C) 2007-2014 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 #include -#define SIZEOF(array) (sizeof (array) / sizeof (array[0])) -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" #include "test-sprintf-posix.h"