From e48c495572ae1e07aa3f48e801caec351a370c4b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 27 Jul 2014 15:39:58 +0100 Subject: [PATCH] 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 --- tests/pm_rps.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/pm_rps.c b/tests/pm_rps.c index 5264436..5155ed9 100644 --- a/tests/pm_rps.c +++ b/tests/pm_rps.c @@ -254,12 +254,8 @@ static void load_helper_run(enum load load) 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) -- 2.7.4