summaryrefslogtreecommitdiff
path: root/tests/gem_bad_reloc.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-04-08 00:32:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-04-08 00:34:08 +0100
commitc3268d9a2698c7e91de48600283c701473f4c85d (patch)
treeddae71da987bb1ed66dc97df6c66c65612e04bef /tests/gem_bad_reloc.c
parentd7db79d971b8f1bb2177d14718b136789b337d39 (diff)
tests: More require GEM markup
A few more tests that use i915/gem without first checking that the GPU is working. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_bad_reloc.c')
-rw-r--r--tests/gem_bad_reloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/gem_bad_reloc.c b/tests/gem_bad_reloc.c
index 2351ce91..7624cd8e 100644
--- a/tests/gem_bad_reloc.c
+++ b/tests/gem_bad_reloc.c
@@ -188,8 +188,10 @@ igt_main
const struct intel_execution_engine *e;
int fd = -1;
- igt_fixture
+ igt_fixture {
fd = drm_open_driver(DRIVER_INTEL);
+ igt_require_gem(fd);
+ }
for (e = intel_execution_engines; e->name; e++) {
igt_subtest_f("negative-reloc-%s", e->name)