Fix last commit.
[pspp] / tests / test-fstatat.c
index e6abe38e26dd35834f1580af7e1836bef0b446e8..89cd07945ebdd06bcf46de51cf92fb5844a79b9e 100644 (file)
@@ -1,5 +1,5 @@
 /* Tests of fstatat.
-   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
@@ -60,6 +60,10 @@ int
 main (void)
 {
   int result;
+
+  /* Remove any leftovers from a previous partial run.  */
+  system ("rm -rf " BASE "*");
+
   result = test_stat_func (do_stat, false);
   ASSERT (test_lstat_func (do_lstat, false) == result);
   dfd = open (".", O_RDONLY);