1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-11-03 04:17:18 -05:00

Remove superfluous access() as unlink() does the same thing

This commit is contained in:
Moritz Grimm 2017-09-25 18:18:07 +02:00
parent 9cb757f17f
commit 4551bfdbc0

View File

@ -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);
}