summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-30 08:15:32 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-30 08:15:32 +0200
commitf73724c3628b61c41642837a709ac8427d699b99 (patch)
tree3097c07ccff2f1f0b0e9f5c3b4a778c1a347b0c4
parent694bd81ed6a90e31af311da114e206a3b3d3bc1a (diff)
tests/gem_mmap_gtt: fix access checks
Reading manpages advisable ;-) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--tests/gem_mmap_gtt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_mmap_gtt.c b/tests/gem_mmap_gtt.c
index 9e25e225..ed040484 100644
--- a/tests/gem_mmap_gtt.c
+++ b/tests/gem_mmap_gtt.c
@@ -95,8 +95,8 @@ test_access(int fd)
MAP_SHARED, fd, mmap_arg.offset));
/* Check that the same offset on the other fd doesn't work. */
- igt_assert(!mmap64(0, OBJECT_SIZE, PROT_READ | PROT_WRITE,
- MAP_SHARED, fd2, mmap_arg.offset));
+ igt_assert(mmap64(0, OBJECT_SIZE, PROT_READ | PROT_WRITE,
+ MAP_SHARED, fd2, mmap_arg.offset) == MAP_FAILED);
igt_assert(errno == EACCES);
flink = gem_flink(fd, handle);