X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-stat-time.c;h=31cd4eaf575a18abc30ac755df21d5f2ed885250;hb=a20403123cca92c457751f335d502bdf1c36b6f7;hp=bf3e8dfe361840e918d8911aea9387f50ab8d76b;hpb=a03613b6836443ac6ac2fa8b2037a1b6644dcc4c;p=gnulib.git diff --git a/tests/test-stat-time.c b/tests/test-stat-time.c index bf3e8dfe3..31cd4eaf5 100644 --- a/tests/test-stat-time.c +++ b/tests/test-stat-time.c @@ -1,10 +1,10 @@ /* Test of . Copyright (C) 2007 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or modify + 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 - the Free Software Foundation; either version 2, or (at your option) - any later version. + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -12,8 +12,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ /* Written by James Youngman , 2007. */ @@ -28,7 +27,16 @@ #include #include -#define ASSERT(condition) if (!(condition)) abort () +#define ASSERT(expr) \ + do \ + { \ + if (!(expr)) \ + { \ + fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ + abort (); \ + } \ + } \ + while (0) enum { NFILES = 4 };