[igt-dev] [PATCH i-g-t] i915/gem_eio: Skip context creation tests if lacking contexts
Chris Wilson
chris at chris-wilson.co.uk
Sat Feb 23 09:49:35 UTC 2019
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 at chris-wilson.co.uk>
---
tests/i915/gem_eio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c
index 21bf64285..292508521 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);
--
2.20.1
More information about the igt-dev
mailing list