From 5038b7e4c243b4e9d07db34a33c70adbec044370 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Fri, 18 Oct 2013 17:53:05 +0200 Subject: [PATCH] lib: fix the assert in igt_stop_helper So much for developing different patches on different machines and then not retesting after rebasing. Reported by Ben on irc. Signed-off-by: Daniel Vetter --- lib/drmtest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index 706357de..0e65cdd8 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -1085,7 +1085,8 @@ void igt_stop_helper(struct igt_helper_process *proc) while (waitpid(proc->pid, &status, 0) == -1 && errno == -EINTR) ; - igt_assert(WIFSIGNALED(status) && WTERMSIG(status) == SIGQUIT); + igt_assert(WIFSIGNALED(status) && + WTERMSIG(status) == (proc->use_SIGKILL ? SIGKILL : SIGQUIT)); proc->running = false;