From: Pádraig Brady Date: Mon, 11 Dec 2017 01:59:32 +0000 (-0800) Subject: test-faccessat.c: avoid test failure if prior partial run X-Git-Tag: v1.0~5799 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=21d224dc9e848fc310dc35b622a3a854baa84513;p=gnulib.git test-faccessat.c: avoid test failure if prior partial run * tests/test-faccessat.c: Remove the file if present to ensure not present from a prior (partial) run. --- diff --git a/tests/test-faccessat.c b/tests/test-faccessat.c index e880faee58..edf766bcf3 100644 --- a/tests/test-faccessat.c +++ b/tests/test-faccessat.c @@ -45,6 +45,7 @@ main (void) } /* Test behavior with trailing slash. */ + unlink (BASE "file"); ASSERT (faccessat (AT_FDCWD, ".", X_OK, 0) == 0); ASSERT (faccessat (AT_FDCWD, "./", X_OK, 0) == 0); ASSERT (close (open (BASE "file", O_CREAT | O_WRONLY, 0)) == 0);