[igt-dev] [PATCH i-g-t] tests/i915/gem_create: use correct type for assert
Matthew Auld
matthew.auld at intel.com
Fri Jul 8 12:56:59 UTC 2022
On 08/07/2022 13:27, Nirmoy Das wrote:
> visible_size is u64 hence use igt_assert_neq_u64 instead
> of igt_assert_neq.
>
> Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>
> ---
> tests/i915/gem_create.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/i915/gem_create.c b/tests/i915/gem_create.c
> index 1b694c6ad..d2b41e10b 100644
> --- a/tests/i915/gem_create.c
> +++ b/tests/i915/gem_create.c
> @@ -707,7 +707,7 @@ static void create_ext_cpu_access_big(int fd)
>
> lmem_size = qmr.probed_size;
> visible_size = qmr.probed_cpu_visible_size;
> - igt_assert_neq(visible_size, 0);
> + igt_assert_neq_u64(visible_size, 0);
>
> if (visible_size <= (0.70 * lmem_size)) {
> /*
More information about the igt-dev
mailing list