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:
Daniel Vetter 2014-06-17 23:06:59 +02:00
parent 13b3e5f3e0
commit 1b1f4b16a2

View File

@ -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);
}