X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-rmdir.c;h=6957efe1dcfd034732cde1255eb7ff3d603ddc44;hb=9fc77bc59374e21e1174742df416af186a368e14;hp=9ca88e2abd54630d63eac91a6756919d86d9c170;hpb=987e5651e8d1c5aa933c9ce88562806af4093702;p=gnulib.git diff --git a/tests/test-rmdir.c b/tests/test-rmdir.c index 9ca88e2ab..6957efe1d 100644 --- a/tests/test-rmdir.c +++ b/tests/test-rmdir.c @@ -1,5 +1,5 @@ /* Tests of rmdir. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2011 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 @@ -30,6 +30,7 @@ SIGNATURE_CHECK (rmdir, int, (char const *)); #include #include +#include "ignore-value.h" #include "macros.h" #define BASE "test-rmdir.t" @@ -39,5 +40,8 @@ SIGNATURE_CHECK (rmdir, int, (char const *)); int main (void) { + /* Remove any leftovers from a previous partial run. */ + ignore_value (system ("rm -rf " BASE "*")); + return test_rmdir_func (rmdir, true); }