mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-25 16:56:35 +00:00
tests/gem_mmap_gtt: fix access checks
Reading manpages advisable ;-) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
694bd81ed6
commit
f73724c362
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user