X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-futimens.c;h=adaaa083a1ccd63ac088ea594030a9eb41f72b6e;hb=4ec4a8e6d91a7247cf7d5b819572026ef5e654c3;hp=3eac64c4c8075ea2465e57c5f97b67e9ff23cad7;hpb=959d9cb463d992f9c5cc2fbeb54bf12eee2346f7;p=gnulib.git diff --git a/tests/test-futimens.c b/tests/test-futimens.c index 3eac64c4c..adaaa083a 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-2013 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,28 +34,18 @@ #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" #include "test-futimens.h" int -main () +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); }