X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-rename.c;h=c5c6c439195f70c576c955ef65fed8e44e1f2d41;hb=cd2b137d95b850c778efb956d7901533787afa92;hp=1cd2e8fc0cea217544a0b8177caa0e6a79023b2d;hpb=89ae4589dd58d12e7cbcf0e92c1d828c1e430f97;p=gnulib.git diff --git a/tests/test-rename.c b/tests/test-rename.c index 1cd2e8fc0..c5c6c4391 100644 --- a/tests/test-rename.c +++ b/tests/test-rename.c @@ -1,9 +1,9 @@ /* Test of rename() function. - 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 - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -29,17 +29,8 @@ SIGNATURE_CHECK (rename, int, (char const *, char const *)); #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-rename.t" @@ -49,7 +40,7 @@ int main (void) { /* Remove any garbage left from previous partial runs. */ - ASSERT (system ("rm -rf " BASE "*") == 0); + ignore_value (system ("rm -rf " BASE "*")); return test_rename (rename, true); }