From 694bd81ed6a90e31af311da114e206a3b3d3bc1a Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Fri, 30 Aug 2013 08:13:05 +0200 Subject: tests/gem_mmap_gtt: clarify access check checks a bit Signed-off-by: Daniel Vetter --- tests/gem_mmap_gtt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/gem_mmap_gtt.c') 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); -- cgit v1.2.3