mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 08:56:11 +00:00
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:
parent
a6e6c5bdcf
commit
e48c495572
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user