igt/pm_rps: Fix assertion in load_helper_stop

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>
This commit is contained in:
Chris Wilson 2014-07-27 15:39:58 +01:00
parent a6e6c5bdcf
commit e48c495572

View File

@ -254,12 +254,8 @@ static void load_helper_run(enum load load)
static void load_helper_stop(void) static void load_helper_stop(void)
{ {
int status;
kill(lh.igt_proc.pid, SIGUSR1); kill(lh.igt_proc.pid, SIGUSR1);
status = igt_wait_helper(&lh.igt_proc); igt_assert(igt_wait_helper(&lh.igt_proc) == 0);
igt_assert(WIFSIGNALED(status) && WTERMSIG(status) == SIGUSR1);
} }
static void load_helper_init(void) static void load_helper_init(void)