X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-posixtm.c;h=18e9e36ca435ef719898afacc2116f7e313d7629;hb=f283cf4e5364da816fdd6e376110035b04facae9;hp=2e17b4155ddf0e1b289bcd69b713b96489306178;hpb=3e2faf235348ba68f0fd19bc34d466cb1cfc1597;p=gnulib.git diff --git a/tests/test-posixtm.c b/tests/test-posixtm.c index 2e17b4155..18e9e36ca 100644 --- a/tests/test-posixtm.c +++ b/tests/test-posixtm.c @@ -1,5 +1,5 @@ /* Test that posixtime works as required. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 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 @@ -27,20 +27,7 @@ #include #include "intprops.h" - -#define STREQ(a, b) (strcmp (a, b) == 0) - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" struct posixtm_test { @@ -101,7 +88,7 @@ static struct posixtm_test const T[] = }; int -main (int argc, char **argv) +main (void) { unsigned int i; int fail = 0;