X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-areadlinkat.c;h=cb5848a1a8fd67225e988070b44a2aa4e00fb3da;hb=d0f97a44fdeb55f2197ed8f191de8a91e43ad827;hp=e567b3718757cabb7a17492e8d5784ecdace4395;hpb=82381b9e5b37125305709d412d8322b35e5c4796;p=gnulib.git diff --git a/tests/test-areadlinkat.c b/tests/test-areadlinkat.c index e567b3718..cb5848a1a 100644 --- a/tests/test-areadlinkat.c +++ b/tests/test-areadlinkat.c @@ -1,5 +1,5 @@ /* Tests of areadlinkat. - 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 @@ -29,17 +29,7 @@ #include #include -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" #define BASE "test-areadlinkat.t" @@ -49,7 +39,7 @@ static int dfd = AT_FDCWD; /* Wrapper for testing areadlinkat. */ static char * -do_areadlinkat (char const *name, size_t ignored _UNUSED_PARAMETER_) +do_areadlinkat (char const *name, size_t ignored _GL_UNUSED) { return areadlinkat (dfd, name); } @@ -60,7 +50,7 @@ main (void) int result; /* Remove any leftovers from a previous partial run. */ - ASSERT (system ("rm -rf " BASE "*") == 0); + system ("rm -rf " BASE "*"); /* Basic tests. */ result = test_areadlink (do_areadlinkat, false);