From 14dd7cb8aa86d51b093c8cffa40df420c342c89a Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 11 Sep 2013 11:51:40 +0200 Subject: [PATCH] lib/drmtest: Reject igt_fork from within igt_fork earlier We reject it in igt_waitchildren already, but earlier is better. 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 5c52ddcd..f31091a9 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -1035,6 +1035,7 @@ void igt_stop_helper(struct igt_helper_process *proc) bool __igt_fork(void) { assert(!test_with_subtests || in_subtest); + assert(!test_child); if (num_test_children >= test_children_sz) { if (!test_children_sz)