summaryrefslogtreecommitdiff
path: root/lib/drmtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r--lib/drmtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index ae64f226..a01ccfa0 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -533,7 +533,7 @@ uint32_t gem_context_create(int fd)
int ret;
ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_CONTEXT_CREATE, &create);
- igt_require(ret == 0 || (errno == ENODEV || errno == EINVAL));
+ igt_require(ret == 0 || (errno != ENODEV && errno != EINVAL));
igt_assert(ret == 0);
return create.ctx_id;