static void run(unsigned int i) { const struct testcase *tc = &testcases[i]; TEST(sys_tgkill(*tc->tgid, *tc->tid, tc->sig)); if (tc->err) { if (TST_RET < 0 && TST_ERR == tc->err) tst_res(TPASS | TTERRNO, "%s failed as expected", tc->desc); else tst_res(TFAIL | TTERRNO, "%s should have failed with %s", tc->desc, tst_strerrno(tc->err)); } else { if (TST_RET == 0) tst_res(TPASS, "%s succeeded", tc->desc); else tst_res(TFAIL | TTERRNO, "%s failed", tc->desc); } }
long compat_sys_tgkill(u32 tgid, u32 pid, int sig) { /* sign extend tgid, pid */ return sys_tgkill((int)tgid, (int)pid, sig); }
long compat_sys_tgkill(u32 tgid, u32 pid, int sig) { return sys_tgkill((int)tgid, (int)pid, sig); }