summaryrefslogtreecommitdiff
path: root/tests/pm_rps.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-24 11:44:45 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-24 11:52:37 +0100
commit745945546f7366a413a3a51a37f90caa3a227b1d (patch)
treef47206a6f4b741d687727e602d8dd76c60d11e9a /tests/pm_rps.c
parentbd3cf81e982d191715a68b6432c3820e9ba733ff (diff)
igt_core: Refactor igt_stop_helper() to use igt_wait_helper()
Reduce code duplication as the igt_stop_helper can reuse igt_wait_helper() to replace its own waiting routine. 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, 5 insertions, 1 deletions
diff --git a/tests/pm_rps.c b/tests/pm_rps.c
index 96fec991..8593e364 100644
--- a/tests/pm_rps.c
+++ b/tests/pm_rps.c
@@ -253,8 +253,12 @@ static void load_helper_run(enum load load)
static void load_helper_stop(void)
{
+ int status;
+
kill(lh.igt_proc.pid, SIGUSR1);
- igt_wait_helper(&lh.igt_proc);
+ status = igt_wait_helper(&lh.igt_proc);
+
+ igt_assert(WIFSIGNALED(status) && WTERMSIG(status) == SIGUSR1);
}
static void load_helper_init(void)