From 548323c87d2f11384023ae3b064d6eb793d23115 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 16 Oct 2013 19:52:00 +0200 Subject: [PATCH] lib/drmtest: Check that helper processes have died correctly If the test gets stopped sometimes a helper process falls over. We need to report this. Since we currently don't track helper process to precisely we can't shut up the 2nd test failure messge. This shouldn't happen anyway. Signed-off-by: Daniel Vetter --- lib/drmtest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/drmtest.c b/lib/drmtest.c index 435a7458..706357de 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -1085,6 +1085,7 @@ 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); proc->running = false;