From de7ccdd083579c82a1be0c028acf38617fb8c2ca Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Thu, 1 Oct 2015 14:16:48 +0100 Subject: tests: Run igt.cocci Signed-off-by: Daniel Stone --- tests/gem_bad_reloc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/gem_bad_reloc.c') 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); -- cgit v1.2.3