summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-04-06 10:07:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-04-06 16:52:24 +0100
commite5a785cc7b6b6ca47a40467878372728064d02fa (patch)
tree131cbf4736fe7a82d3626571145c4a3086d42e81
parent8a7353abf41eb3dbbde240ac5f7ac26f92ed693a (diff)
igt/gem_eio: Require context support before creation
gem_context_create() nowadays assumes you have already checked for context support and asserts for any error. So check first. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105924 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
-rw-r--r--tests/gem_eio.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/gem_eio.c b/tests/gem_eio.c
index 9599e73d..1a4659a9 100644
--- a/tests/gem_eio.c
+++ b/tests/gem_eio.c
@@ -703,11 +703,17 @@ igt_main
igt_subtest("in-flight-suspend")
test_inflight_suspend(fd);
- igt_subtest("reset-stress")
- test_reset_stress(fd, 0);
+ igt_subtest_group {
+ igt_fixture {
+ igt_require(gem_has_contexts(fd));
+ }
- igt_subtest("unwedge-stress")
- test_reset_stress(fd, TEST_WEDGE);
+ igt_subtest("reset-stress")
+ test_reset_stress(fd, 0);
+
+ igt_subtest("unwedge-stress")
+ test_reset_stress(fd, TEST_WEDGE);
+ }
igt_subtest_group {
const struct {