From 1b1f4b16a25b6415187fd2b0906ae730e9ca8d23 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 17 Jun 2014 23:06:59 +0200 Subject: [PATCH] tests/gem_mmap: Add short mmap test Blows up with the current full-object prefault code. Signed-off-by: Daniel Vetter --- tests/gem_mmap.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/gem_mmap.c b/tests/gem_mmap.c index 46ef3ece..334bd760 100644 --- a/tests/gem_mmap.c +++ b/tests/gem_mmap.c @@ -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); }