From 21d224dc9e848fc310dc35b622a3a854baa84513 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Sun, 10 Dec 2017 17:59:32 -0800 Subject: [PATCH] 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. --- tests/test-faccessat.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5