summaryrefslogtreecommitdiff
path: root/tests/i915/gem_mmap_gtt.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-02-12 10:14:11 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2019-02-12 10:59:53 +0000
commited32029e6a630d9322bd544b626eea38b4785e68 (patch)
treec04be09f407efb25fcc9d053721a6d2d55a43f1a /tests/i915/gem_mmap_gtt.c
parent08cdb644686629dcf968c6cc00e054ed5f5aae6a (diff)
i915/gem_mmap_gtt: Impose a timeout for "hang"
Only wait a maximum of 2 more seconds for the hang children to complete, to catch deadlocks in a timely fashion. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Diffstat (limited to 'tests/i915/gem_mmap_gtt.c')
-rw-r--r--tests/i915/gem_mmap_gtt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_mmap_gtt.c b/tests/i915/gem_mmap_gtt.c
index f9d811ad..f6fbbe19 100644
--- a/tests/i915/gem_mmap_gtt.c
+++ b/tests/i915/gem_mmap_gtt.c
@@ -450,7 +450,7 @@ test_hang(int fd)
igt_info("%lu resets\n", count);
control->done = true;
- igt_waitchildren();
+ igt_waitchildren_timeout(2, NULL);
igt_assert(!control->error);
munmap(control, 4096);