diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-13 15:59:55 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-13 16:10:57 +0100 |
commit | c7eb3bd634c7af6d8a6e2235f37c628830c14e70 (patch) | |
tree | 6b1c2a851e7433f36525ac47e24d871ed5283ee7 /tests/gem_exec_fence.c | |
parent | 9372ad64c4e63c111124ba95506b27ce2bb70b47 (diff) |
igt/gem_exec_fence: Enable hang detector
Actually check for GPU hangs when not running the hanging tests.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_exec_fence.c')
-rw-r--r-- | tests/gem_exec_fence.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/gem_exec_fence.c b/tests/gem_exec_fence.c index dc21134b..b484b9f1 100644 --- a/tests/gem_exec_fence.c +++ b/tests/gem_exec_fence.c @@ -330,6 +330,10 @@ igt_main } igt_subtest_group { + igt_fixture { + igt_fork_hang_detector(i915); + } + igt_subtest_f("%sbusy-%s", e->exec_id == 0 ? "basic-" : "", e->name) @@ -344,6 +348,10 @@ igt_main test_fence_await(i915, e->exec_id | e->flags, 0); igt_subtest_f("nb-await-%s", e->name) test_fence_await(i915, e->exec_id | e->flags, NONBLOCK); + + igt_fixture { + igt_stop_hang_detector(); + } } igt_subtest_group { |