igt/pm_rps: Fix assertion in load_helper_stop
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 27 Jul 2014 14:39:58 +0000 (15:39 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 27 Jul 2014 14:39:58 +0000 (15:39 +0100)
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>
tests/pm_rps.c

index 5264436..5155ed9 100644 (file)
@@ -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)