[Intel-gfx] [PATCH 2/3] igt/gem_stolen: Fix for no_mmap subtest
ankitprasad.r.sharma at intel.com
ankitprasad.r.sharma at intel.com
Fri Jun 3 08:51:30 UTC 2016
From: Ankitprasad Sharma <ankitprasad.r.sharma at intel.com>
no_mmap subtest is expected to fail, but calling gem_mmap__cpu
will assert the returned value itself, which makes test fail.
Replacing gem_mmap__cpu by __gem_mmap__cpu and checking the
returned value.
Signed-off-by: Ankitprasad Sharma <ankitprasad.r.sharma at intel.com>
---
tests/gem_stolen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/gem_stolen.c b/tests/gem_stolen.c
index 3a3cf81..7d329dd 100644
--- a/tests/gem_stolen.c
+++ b/tests/gem_stolen.c
@@ -392,7 +392,7 @@ stolen_no_mmap(int fd)
handle = gem_create_stolen(fd, SIZE);
- addr = gem_mmap__cpu(fd, handle, 0, SIZE, PROT_READ | PROT_WRITE);
+ addr = __gem_mmap__cpu(fd, handle, 0, SIZE, PROT_READ | PROT_WRITE);
igt_assert(addr == NULL);
gem_close(fd, handle);
--
1.9.1
More information about the Intel-gfx
mailing list