diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-03 12:02:17 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-03 12:03:15 +0100 |
commit | 537e0b848660c65b9d235f5576f29ddea3629b07 (patch) | |
tree | 3595ad91b02523da713f99ea94cb9e4890f45bbd /tests/gem_persistent_relocs.c | |
parent | 9f92893b11e83ed9ec71c3084ccb57f74b18705e (diff) |
tests: More precautionary selfchecks to filter out broken GPUs
If the driver is already wedged, trying to use GEM will only result in
misleading failure.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_persistent_relocs.c')
-rw-r--r-- | tests/gem_persistent_relocs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_persistent_relocs.c b/tests/gem_persistent_relocs.c index e51420e1..bc831ee4 100644 --- a/tests/gem_persistent_relocs.c +++ b/tests/gem_persistent_relocs.c @@ -323,6 +323,7 @@ igt_main igt_fixture { fd = drm_open_driver(DRIVER_INTEL); + igt_require_gem(fd); bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); /* disable reuse, otherwise the test fails */ |