X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-strchrnul.c;h=6ea8adc312d6b0a750b653c6f2304204f3fc24eb;hb=e81d3b1b46e69f9799deb665769f9796c4e454e6;hp=ea882e5543d5c0c5506fdf6c7650b36cd7c61b6c;hpb=82381b9e5b37125305709d412d8322b35e5c4796;p=gnulib.git diff --git a/tests/test-strchrnul.c b/tests/test-strchrnul.c index ea882e554..6ea8adc31 100644 --- a/tests/test-strchrnul.c +++ b/tests/test-strchrnul.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008, 2009 Free Software Foundation + * Copyright (C) 2008-2011 Free Software Foundation, Inc. * Written by Eric Blake and Bruno Haible * * This program is free software: you can redistribute it and/or modify @@ -19,20 +19,12 @@ #include -#include +#include "signature.h" +SIGNATURE_CHECK (strchrnul, char *, (char const *, int)); + #include -#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 (void)