summaryrefslogtreecommitdiff
path: root/tests/gem_ctx_thrash.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-12-18 16:20:10 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-12-18 16:22:59 +0000
commit4bde75434999568db4868adfcdc9f93fcb7c49c4 (patch)
tree63a1b499f2519c3206415d023b797e115b5f76fb /tests/gem_ctx_thrash.c
parent9f389d00cf83248fa31f626a5a4a3f5ac7c07a75 (diff)
igt/gem_ctx_thread/processes: Serialise after forking children
Play nice, especially with the subtest, and wait for the children to exit before finishing the test. If we don't we end up with a fork bomb for some unknown reason... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_ctx_thrash.c')
-rw-r--r--tests/gem_ctx_thrash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_ctx_thrash.c b/tests/gem_ctx_thrash.c
index aecbc567..a351bb9d 100644
--- a/tests/gem_ctx_thrash.c
+++ b/tests/gem_ctx_thrash.c
@@ -219,6 +219,7 @@ processes(void)
drm_intel_bufmgr_destroy(bufmgr);
}
}
+ igt_waitchildren();
for (n = 0; n < num_ctx; n++)
close(all_fds[n]);