summaryrefslogtreecommitdiff
path: root/lib/drmtest.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-10 17:41:49 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-10 18:22:17 +0200
commit57e67461812eb3a1c123e590b0cf08b885417732 (patch)
tree1b67b070852fc8cba4e713314e8722d5e6031778 /lib/drmtest.c
parente73c1a07f3e573a2c46be73c139b0757dc8c4add (diff)
lib/drmtest: double-check that we clean up helper processes
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r--lib/drmtest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 76ddb95fe..a90e2af4e 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -967,8 +967,11 @@ static void fork_helper_exit_handler(int sig)
kill(pid, SIGQUIT);
waitpid(pid, &status, 0);
+ helper_process_count--;
}
}
+
+ assert(helper_process_count == 0);
}
bool __igt_fork_helper(struct igt_helper_process *proc)