Home | History | Annotate | Download | only in sys

Lines Matching refs:kill

48 	atf_tc_set_md_var(tc, "descr", "Test that kill(2) works");
70 ATF_REQUIRE(kill(pid, sig[i]) == 0);
76 atf_tc_fail("kill(2) failed to kill child");
83 atf_tc_set_md_var(tc, "descr", "Test error conditions of kill(2)");
97 rv = kill(getpid(), -1);
103 rv = kill(INT_MAX, SIGUSR1);
116 atf_tc_fail("expected EINVAL, but kill(2) succeeded");
119 atf_tc_fail("expected ESRCH, but kill(2) succeeded");
121 atf_tc_fail("unknown error from kill(2)");
128 atf_tc_set_md_var(tc, "descr", "Test kill(2) permissions");
141 * Test that kill(2) fails when called
181 * Try to kill the child after having
189 if (kill(cpid, SIGKILL) == 0)
206 atf_tc_fail("unknown error from kill(2)");
212 atf_tc_set_md_var(tc, "descr", "Test kill(2) with process group, #2");
243 ATF_REQUIRE(kill(-getpgrp(), SIGKILL) == 0);
253 atf_tc_fail("failed to kill(2) a process group");
259 atf_tc_set_md_var(tc, "descr", "Test kill(2) with process group, #1");
289 ATF_REQUIRE(kill(0, SIGKILL) == 0);
299 atf_tc_fail("failed to kill(2) a process group");
305 atf_tc_set_md_var(tc, "descr", "Test kill(INT_MIN) fails with ESRCH");
311 ATF_CHECK_ERRNO(ESRCH, kill(INT_MIN, 0));