Mercurial > hg > octave-lojdl > gnulib-hg
diff tests/test-snprintf.c @ 12496:a48d3d749ca5
Refactor common macros used in tests.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 24 Dec 2009 21:01:42 +0100 (2009-12-24) |
parents | 33ab12a7cea2 |
children | c2cbabec01dd |
line wrap: on
line diff
--- a/tests/test-snprintf.c +++ b/tests/test-snprintf.c @@ -23,20 +23,9 @@ #include "signature.h" SIGNATURE_CHECK (snprintf, int, (char *, size_t, char const *, ...)); -#include <stdlib.h> #include <string.h> -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main (int argc, char *argv[])