X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-futimens.c;h=839823023ba019b6e00a2d3fe82351d340f4f5a4;hb=563a0ca5af7e984098ebe90d85a9ff7abe504581;hp=4e049bdffe77bdc3f6d7f20831010f1d31747a8b;hpb=82381b9e5b37125305709d412d8322b35e5c4796;p=gnulib.git diff --git a/tests/test-futimens.c b/tests/test-futimens.c index 4e049bdff..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 @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (futimens, int, (int, struct timespec const[2])); + #include #include #include @@ -31,18 +34,8 @@ #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" @@ -52,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); }