summaryrefslogtreecommitdiff
path: root/tests/gem_bad_reloc.c
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2015-10-01 14:16:48 +0100
committerDaniel Stone <daniels@collabora.com>2015-11-03 19:46:11 +0000
commitde7ccdd083579c82a1be0c028acf38617fb8c2ca (patch)
tree07154ee59791a7fadc2e70199e4b7d0c677681e2 /tests/gem_bad_reloc.c
parentf735015ed36f1e188d1107fd6b0969801df17c86 (diff)
tests: Run igt.cocci
Signed-off-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'tests/gem_bad_reloc.c')
-rw-r--r--tests/gem_bad_reloc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/gem_bad_reloc.c b/tests/gem_bad_reloc.c
index 9c285edd..e8701dab 100644
--- a/tests/gem_bad_reloc.c
+++ b/tests/gem_bad_reloc.c
@@ -107,9 +107,7 @@ static int negative_reloc(int fd, unsigned flags)
execbuf.buffer_count = 2;
execbuf.batch_len = 8;
- do_or_die(drmIoctl(fd,
- DRM_IOCTL_I915_GEM_EXECBUFFER2,
- &execbuf));
+ do_ioctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf);
gem_close(fd, gem_exec[1].handle);
igt_info("Found offset %lld for 4k batch\n", (long long)gem_exec[0].offset);
@@ -136,9 +134,7 @@ static int negative_reloc(int fd, unsigned flags)
execbuf.buffer_count = 1;
execbuf.flags = flags & USE_LUT;
- do_or_die(drmIoctl(fd,
- DRM_IOCTL_I915_GEM_EXECBUFFER2,
- &execbuf));
+ do_ioctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf);
igt_info("Batch is now at offset %lld\n", (long long)gem_exec[0].offset);