diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-02-23 09:48:30 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-02-26 18:03:48 +0000 |
commit | c33e271dadd2a800d1b2ef198e1dcd4e5868cc4c (patch) | |
tree | a5d6fdbc04ce91f6235f71e651a1a4b9f9f5de34 /tests | |
parent | f308fb6efa8045a6e97340a49758a2d593e3cb60 (diff) |
i915/gem_eio: Skip context creation tests if lacking contexts
If the device doesn't support contexts, we expect them to fail with
-ENODEV before reporting -EIO if wedged.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/i915/gem_eio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c index 21bf6428..29250852 100644 --- a/tests/i915/gem_eio.c +++ b/tests/i915/gem_eio.c @@ -122,6 +122,8 @@ static void test_context_create(int fd) { uint32_t ctx; + gem_require_contexts(fd); + wedge_gpu(fd); igt_assert_eq(__gem_context_create(fd, &ctx), -EIO); |