summaryrefslogtreecommitdiff
path: root/tests/pm_rps.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-27 15:39:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-27 15:39:58 +0100
commite48c495572ae1e07aa3f48e801caec351a370c4b (patch)
treebb2a4c93da519b797d9017d425061cf6006b05b2 /tests/pm_rps.c
parenta6e6c5bdcf93376a505abff3ae510d8275727028 (diff)
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>
Diffstat (limited to 'tests/pm_rps.c')
-rw-r--r--tests/pm_rps.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/pm_rps.c b/tests/pm_rps.c
index 5264436c..5155ed9f 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)