The load_helper isn't killed by the signal, but it exits gracefully. So
update the assertion to check for the successful exit.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
static void load_helper_stop(void)
{
- int status;
-
kill(lh.igt_proc.pid, SIGUSR1);
- status = igt_wait_helper(&lh.igt_proc);
-
- igt_assert(WIFSIGNALED(status) && WTERMSIG(status) == SIGUSR1);
+ igt_assert(igt_wait_helper(&lh.igt_proc) == 0);
}
static void load_helper_init(void)