[Intel-gfx] [PATCH i-g-t 1/2] tests/kms_3d: Use igt_assert_eq()

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Mon Nov 16 06:47:33 PST 2015


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Would be nice to see how many stereo modes we managed to extract from
the EDID if it doesn't match the expected 13. So use igt_assert_eq()
which prints the real count on failure.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tests/kms_3d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_3d.c b/tests/kms_3d.c
index 7484940..de923ed 100644
--- a/tests/kms_3d.c
+++ b/tests/kms_3d.c
@@ -72,7 +72,7 @@ igt_simple_main
 			mode_count++;
 	}
 
-	igt_assert(mode_count == 13);
+	igt_assert_eq(mode_count, 13);
 
 	/* set 3D modes */
 	igt_info("Testing:\n");
-- 
2.4.10



More information about the Intel-gfx mailing list