[Intel-gfx] [PATCH] tests/prime_self_import: Use igt_assert_cmpint

Daniel Vetter daniel.vetter at ffwll.ch
Fri Jun 13 10:38:41 CEST 2014


Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 tests/prime_self_import.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/prime_self_import.c b/tests/prime_self_import.c
index 67fd5217479c..defe97ef421f 100644
--- a/tests/prime_self_import.c
+++ b/tests/prime_self_import.c
@@ -302,7 +302,7 @@ static void test_reimport_close_race(void)
 
 	close(fake);
 
-	igt_assert(obj_count == 0);
+	igt_assert_cmpint(obj_count, ==, 0);
 }
 
 static void *thread_fn_export_vs_close(void *p)
@@ -376,7 +376,7 @@ static void test_export_close_race(void)
 	obj_count = get_object_count() - obj_count;
 
 	igt_info("leaked %i objects\n", obj_count);
-	igt_assert(obj_count == 0);
+	igt_assert_cmpint(obj_count, ==, 0);
 }
 
 static void test_llseek_size(void)
-- 
2.0.0




More information about the Intel-gfx mailing list