X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-futimens.c;h=839823023ba019b6e00a2d3fe82351d340f4f5a4;hb=563a0ca5af7e984098ebe90d85a9ff7abe504581;hp=5753c6b2099686ddbae1a80bb092e014350b19e3;hpb=89ae4589dd58d12e7cbcf0e92c1d828c1e430f97;p=gnulib.git diff --git a/tests/test-futimens.c b/tests/test-futimens.c index 5753c6b20..839823023 100644 --- a/tests/test-futimens.c +++ b/tests/test-futimens.c @@ -1,5 +1,5 @@ /* Tests of futimens. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2011 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 @@ -34,18 +34,8 @@ SIGNATURE_CHECK (futimens, int, (int, struct timespec const[2])); #include "stat-time.h" #include "timespec.h" #include "utimecmp.h" - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "ignore-value.h" +#include "macros.h" #define BASE "test-futimens.t" @@ -55,7 +45,7 @@ int main (void) { /* Clean up any trash from prior testsuite runs. */ - ASSERT (system ("rm -rf " BASE "*") == 0); + ignore_value (system ("rm -rf " BASE "*")); return test_futimens (futimens, true); }