Skip to contentSkip to conversation

tests/pm_pc8: Use igt_assert_cmpint

PATCH New Daniel Vetter 1 participant 1 message May 15, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/pm_pc8: Use igt_assert_cmpint

More pretty!

---
 tests/pm_pc8.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
tests/pm_pc8.c +1 -2
index d36350370ba2..323e0729b9e6 100644
@@ -605,8 +605,7 @@ static void test_i2c(struct mode_set_data *data)
 	int i2c_edids = count_i2c_valid_edids();
 	int drm_edids = count_drm_valid_edids(data);
 
-	igt_assert_f(i2c_edids == drm_edids, "i2c:%d drm:%d\n", i2c_edids,
-		     drm_edids);
+	igt_assert_cmpint(i2c_edids, ==, drm_edids);
 }
 
 static void setup_pc8(void)
Signature · 1 line
1.9.2