mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 00:46:17 +00:00
tests/gem_mmap: Add short mmap test
Blows up with the current full-object prefault code. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
13b3e5f3e0
commit
1b1f4b16a2
@ -92,6 +92,13 @@ igt_main
|
||||
munmap(addr, OBJECT_SIZE);
|
||||
}
|
||||
|
||||
igt_subtest("short-mmap") {
|
||||
igt_assert(OBJECT_SIZE > 4096);
|
||||
addr = gem_mmap__cpu(fd, handle, 4096, PROT_WRITE);
|
||||
memset(addr, 0, 4096);
|
||||
munmap(addr, 4096);
|
||||
}
|
||||
|
||||
igt_fixture
|
||||
close(fd);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user