X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-safe-alloc.c;h=2cf61bec691482c93ecad1d9c189336a799710cc;hb=6fe87bef894e5b110b2c1d495dd2bb0c8efa07ad;hp=fc68ae7700009219b78a9ea090c928de7f0b209e;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-safe-alloc.c b/tests/test-safe-alloc.c index fc68ae770..2cf61bec6 100644 --- a/tests/test-safe-alloc.c +++ b/tests/test-safe-alloc.c @@ -1,12 +1,12 @@ /* * Test the safe-alloc macros * - * Copyright (C) 2009 Free Software Foundation, Inc. + * Copyright (C) 2009-2011 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. + * version 3.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -24,20 +24,7 @@ #include "safe-alloc.h" -#include -#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 ()