From 4551bfdbc08cf2b378f8fc5591d7c70be4e3f22a Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Mon, 25 Sep 2017 18:18:07 +0200 Subject: [PATCH] Remove superfluous access() as unlink() does the same thing --- tests/check_util.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/check_util.c b/tests/check_util.c index cfcf9c1..07e5343 100644 --- a/tests/check_util.c +++ b/tests/check_util.c @@ -29,7 +29,6 @@ START_TEST(test_util_write_pid_file) ck_assert_int_eq(util_write_pid_file(BUILDDIR "/check_util-write_pid_file.pid"), 0); ck_assert_int_eq(access(BUILDDIR "/check_util-write_pid_file.pid", F_OK), 0); ck_assert_int_eq(util_write_pid_file(BUILDDIR "/check_util-write_pid_file.pid"), 0); - ck_assert_int_eq(access(BUILDDIR "/check_util-write_pid_file.pid", F_OK), 0); ck_assert_int_eq(unlink(BUILDDIR "/check_util-write_pid_file.pid"), 0); ck_assert_int_ne(access(BUILDDIR "/check_util-write_pid_file.pid", F_OK), 0); }