X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-lstat.c;h=372e05653d4d4cadf889869820ada99b83ba8c2f;hb=54ad421636b6270a0c8898a97c0e911750b63927;hp=1940a2158bae3a8a19261da4dede649d8af554ac;hpb=987e5651e8d1c5aa933c9ce88562806af4093702;p=gnulib.git diff --git a/tests/test-lstat.c b/tests/test-lstat.c index 1940a2158..372e05653 100644 --- a/tests/test-lstat.c +++ b/tests/test-lstat.c @@ -1,5 +1,5 @@ /* Test of lstat() function. - Copyright (C) 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2008-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 @@ -35,6 +35,7 @@ SIGNATURE_CHECK (lstat, int, (char const *, struct stat *)); #include #include "same-inode.h" +#include "ignore-value.h" #include "macros.h" #define BASE "test-lstat.t" @@ -52,5 +53,8 @@ do_lstat (char const *name, struct stat *st) int main (void) { + /* Remove any leftovers from a previous partial run. */ + ignore_value (system ("rm -rf " BASE "*")); + return test_lstat_func (do_lstat, true); }