public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] i915/gem_eio: Skip context creation tests if lacking contexts
@ 2019-02-23  9:49 Chris Wilson
  2019-02-23 10:35 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
  2019-02-23 12:37 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Wilson @ 2019-02-23  9:49 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

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>
---
 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

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-23 12:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-23  9:49 [igt-dev] [PATCH i-g-t] i915/gem_eio: Skip context creation tests if lacking contexts Chris Wilson
2019-02-23 10:35 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-02-23 12:37 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox