[igt-dev] [PATCH i-g-t] tests/i915/gem_create: use correct type for assert

Nirmoy Das nirmoy.das at intel.com
Fri Jul 8 12:27:04 UTC 2022


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>
---
 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)) {
 			/*
-- 
2.35.1

Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928



More information about the igt-dev mailing list