[Intel-gfx] [PATCH 2/3] igt/gem_stolen: Fix for no_mmap subtest

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Fri Jun 3 10:53:42 UTC 2016


On 03/06/16 09:51, ankitprasad.r.sharma at intel.com wrote:
> 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);
>

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Regards,

Tvrtko


More information about the Intel-gfx mailing list