X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-func.c;h=476e04dd9ef5647bf950577053b9a33a98e83aff;hb=91fd3b18b755b77c4bb3f7556ddedb055c16c834;hp=106a20edceff3fbf16b473a8978cb378b9e56310;hpb=349e11eefaf818c688a49a9422830c670d79baee;p=gnulib.git diff --git a/tests/test-func.c b/tests/test-func.c index 106a20edc..476e04dd9 100644 --- a/tests/test-func.c +++ b/tests/test-func.c @@ -1,5 +1,5 @@ /* Test whether __func__ is available - Copyright (C) 2008-2009 Free Software Foundation, Inc. + Copyright (C) 2008-2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,20 +19,8 @@ #include #include -#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 () @@ -46,7 +34,7 @@ main () #endif ASSERT (strcmp (__func__, "main") == 0 - || strcmp (__func__, "") == 0); + || strcmp (__func__, "") == 0); return 0; }