Commit 4551bfdb authored by Moritz Grimm's avatar Moritz Grimm
Browse files

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

parent 9cb757f1
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment