X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fdutimensat.c;h=949ca47aa33eed660cd2d85478000bc42cb17174;hb=692679fcbebba0095bae0f1f1a99bd1f0f5a0476;hp=b5c60aed9adb3e79375bc71c58657fd285e8c8b7;hpb=06b8c126a964a60ad353cc4f7b296060ae5c9df4;p=gnulib.git diff --git a/tests/test-fdutimensat.c b/tests/test-fdutimensat.c index b5c60aed9..949ca47aa 100644 --- a/tests/test-fdutimensat.c +++ b/tests/test-fdutimensat.c @@ -1,5 +1,5 @@ /* Tests of fdutimensat. - 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 @@ -25,17 +25,8 @@ #include #include -#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-fdutimensat.t" @@ -86,7 +77,7 @@ do_utimens (const char *name, struct timespec const times[2]) } int -main () +main (void) { int result1; /* Skip because of no symlink support. */ int result2; /* Skip because of no futimens support. */ @@ -94,7 +85,7 @@ main () int fd; /* Clean up any trash from prior testsuite runs. */ - ASSERT (system ("rm -rf " BASE "*") == 0); + ignore_value (system ("rm -rf " BASE "*")); /* Basic tests. */ result1 = test_utimens (do_utimens, true);