X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-memrchr.c;h=d6d36c03fc49a4d46114b1eb94b49ca369638b74;hb=977389d936eb39475d8540651074ab48fcfd85a1;hp=d9128e76e45af401c0f5afba30f0cbeb1ab13d43;hpb=89ae4589dd58d12e7cbcf0e92c1d828c1e430f97;p=gnulib.git diff --git a/tests/test-memrchr.c b/tests/test-memrchr.c index d9128e76e..d6d36c03f 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-2011 Free Software Foundation, Inc. * Written by Eric Blake and Bruno Haible * * This program is free software: you can redistribute it and/or modify @@ -22,22 +22,10 @@ #include "signature.h" SIGNATURE_CHECK (memrchr, void *, (void const *, int, size_t)); -#include #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. */