X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-memrchr.c;h=820024438b1deb03372d80ca9ae6146c9310bb6f;hb=d65e3e846d1ea5dedb9e75afb9cfa37d2dfc3f95;hp=17bc1f6f26fe3deb213f8051d7092b3ba2ed7d8e;hpb=2d4d7d9d00fe33b6f5291e00a30b6c1016775b74;p=gnulib.git diff --git a/tests/test-memrchr.c b/tests/test-memrchr.c index 17bc1f6f2..820024438 100644 --- a/tests/test-memrchr.c +++ b/tests/test-memrchr.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2009 Free Software Foundation + * Copyright (C) 2008-2010 Free Software Foundation, Inc. * Written by Eric Blake and Bruno Haible * * This program is free software: you can redistribute it and/or modify @@ -19,22 +19,13 @@ #include -#include +#include "signature.h" +SIGNATURE_CHECK (memrchr, void *, (void const *, int, size_t)); + #include #include "zerosize-ptr.h" - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" /* Calculating void * + int is not portable, so this wrapper converts to char * to make the tests easier to write. */