summaryrefslogtreecommitdiff
path: root/tests/gem_exec_nop.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_exec_nop.c')
-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);