X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-safe-alloc.c;h=fba6eec4019bff338793079ca9c6ff2781e7a3b5;hb=870daa58035b4bb39549f15d20ad1422dd649d63;hp=fc68ae7700009219b78a9ea090c928de7f0b209e;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-safe-alloc.c b/tests/test-safe-alloc.c index fc68ae770..fba6eec40 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, 2010 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 ()