summaryrefslogtreecommitdiff
path: root/lib/drmtest.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-11 11:51:40 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-11 11:51:40 +0200
commit14dd7cb8aa86d51b093c8cffa40df420c342c89a (patch)
tree747a8561332c2d6a7da3d77ea88c2e787210f798 /lib/drmtest.c
parent5f790db084ca32de79a097c29cb4fa41dcc4cb43 (diff)
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 <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r--lib/drmtest.c1
1 files changed, 1 insertions, 0 deletions
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)