From: Ankitprasad Sharma <ankitprasad.r.sha...@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.sha...@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 _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx