projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0aa8f1
)
tests/gem_mmap_gtt: clarify access check checks a bit
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 30 Aug 2013 06:13:05 +0000
(08:13 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 30 Aug 2013 06:13:05 +0000
(08:13 +0200)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/gem_mmap_gtt.c
patch
|
blob
|
history
diff --git
a/tests/gem_mmap_gtt.c
b/tests/gem_mmap_gtt.c
index
21c7d18
..
9e25e22
100644
(file)
--- 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);