X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-rename.c;h=868dcd8444c8a2fe19b080020efef22d94d91e8a;hb=025f7741264a170d2a87c30370bc4b96b256f3b4;hp=797cc940dfead6f6774b08a0139d5c29590860b1;hpb=987e5651e8d1c5aa933c9ce88562806af4093702;p=gnulib.git diff --git a/tests/test-rename.c b/tests/test-rename.c index 797cc940d..868dcd844 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-2012 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, @@ -21,6 +21,7 @@ #include "signature.h" SIGNATURE_CHECK (rename, int, (char const *, char const *)); +#include #include #include #include @@ -29,6 +30,7 @@ SIGNATURE_CHECK (rename, int, (char const *, char const *)); #include #include +#include "ignore-value.h" #include "macros.h" #define BASE "test-rename.t" @@ -39,7 +41,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); }