projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e7dddc
)
lib/drmtest: fix logic fumble in gem_context_create
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 21 Aug 2013 08:22:13 +0000
(10:22 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 21 Aug 2013 08:23:08 +0000
(10:23 +0200)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68363
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
lib/drmtest.c
patch
|
blob
|
history
diff --git
a/lib/drmtest.c
b/lib/drmtest.c
index
ae64f22
..
a01ccfa
100644
(file)
--- 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;