summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-03-18 08:46:14 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-03-18 08:47:13 +0000
commit1d0aa69f55fdb31662946f1cb472dda31347d89b (patch)
tree08f1eafadfc0f477bba8662a068f34074182dd57
parent484c1a6f1cf97d3d1ff757cddd8f77accc89790a (diff)
igt/gem_exec_nop: Enlighten the failure error message
References: https://bugs.freedesktop.org/show_bug.cgi?id=89633 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--tests/gem_exec_nop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c
index e0709e95..f110c9dd 100644
--- a/tests/gem_exec_nop.c
+++ b/tests/gem_exec_nop.c
@@ -78,9 +78,8 @@ static int exec(int fd, uint32_t handle, int loops, unsigned ring_id)
execbuf.rsvd2 = 0;
while (loops-- && ret == 0) {
- ret = drmIoctl(fd,
- DRM_IOCTL_I915_GEM_EXECBUFFER2,
- &execbuf);
+ if (drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf))
+ ret = -errno;
}
gem_sync(fd, handle);