summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-30 08:13:05 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-30 08:13:05 +0200
commit694bd81ed6a90e31af311da114e206a3b3d3bc1a (patch)
tree140c3bdd6f02f93de6b85973c3e211a0a5fec6d1
parenta0aa8f1a2c927090d8e505565bcab035d605b711 (diff)
tests/gem_mmap_gtt: clarify access check checks a bit
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 21c7d18e..9e25e225 100644
--- a/tests/gem_mmap_gtt.c
+++ b/tests/gem_mmap_gtt.c
@@ -96,8 +96,8 @@ test_access(int fd)
/* 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) &&
- errno == EACCES);
+ MAP_SHARED, fd2, mmap_arg.offset));
+ igt_assert(errno == EACCES);
flink = gem_flink(fd, handle);
igt_assert(flink);