summaryrefslogtreecommitdiff
path: root/tests/gem_eio.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-12-16 09:23:56 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-01-20 13:13:57 +0000
commit92caf138f2d878429f91397120e215dcb524efac (patch)
tree03a0e0682b926df4beccc8912ce1401ef06cd892 /tests/gem_eio.c
parenta2eb63720b939d58a39cc7e5ef5ad2204fec260a (diff)
tests: Drop the superfluous igt_require_hang_ring()
As the hang injection now itself checks for validity before use, the tests don't need to do so themselves. Except in certain situations! If the test forks, it should do requirement checks before the fork (so that we don't anger the igt gods) and if the test plays around i915.reset then it needs to do an early igt_require_hang_ring() that is not affected by the changes to i915.reset. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_eio.c')
-rw-r--r--tests/gem_eio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_eio.c b/tests/gem_eio.c
index b0cbf80f..d2e4ed76 100644
--- a/tests/gem_eio.c
+++ b/tests/gem_eio.c
@@ -188,7 +188,7 @@ igt_main
igt_fixture {
fd = drm_open_driver(DRIVER_INTEL);
- igt_require_hang_ring(fd, -1);
+ igt_require_hang_ring(fd, I915_EXEC_DEFAULT);
}
igt_subtest("throttle")