summaryrefslogtreecommitdiff
path: root/tests/gem_mmap_wc.c
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2015-08-04 16:25:17 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2015-08-05 17:18:45 -0300
commitcd33b47a47251eadd21815bfd2ecc8529c7bcf6d (patch)
tree2ff0705c2f06d37879f0b16d75f841e20cf547e3 /tests/gem_mmap_wc.c
parent5f9bc98a55d8077f1b42e953d573c4e655832bfa (diff)
tests/gem_mmap_wc: don't fail if the Kernel is too old for the getparam flag
Just don't check the drmIoctl() return code: the "if (val)" should be enough to prevent any problems. v2: Don't SKIP, just proceed (Chris). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89739 Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tests/gem_mmap_wc.c')
-rw-r--r--tests/gem_mmap_wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_mmap_wc.c b/tests/gem_mmap_wc.c
index 6e434652..0a5326e9 100644
--- a/tests/gem_mmap_wc.c
+++ b/tests/gem_mmap_wc.c
@@ -104,7 +104,7 @@ test_invalid_flags(int fd)
gp.value = &val;
/* Do we have the new mmap_ioctl? */
- do_ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
+ drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
if (val >= 1) {
/*