X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fpending.c;h=f4a231c914ad2682b6c9226cd6529416d51e027c;hb=5f70dcfc4f65198adbce63a01a17f18b1627beee;hp=05563f8702f47315d9d4e1941236ed29f57b6976;hpb=606dd130bdce412935eca78598923720a7e346c4;p=gnulib.git diff --git a/tests/test-fpending.c b/tests/test-fpending.c index 05563f870..f4a231c91 100644 --- a/tests/test-fpending.c +++ b/tests/test-fpending.c @@ -1,6 +1,6 @@ /* Ensure that __fpending works. - Copyright (C) 2004, 2007 Free Software Foundation, Inc. + Copyright (C) 2004, 2007-2012 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 @@ -24,19 +24,10 @@ #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int -main () +main (void) { ASSERT (__fpending (stdout) == 0);