[Intel-gfx,7/7] tests/kms_pipe_crc_basic: Use igt_assert_eq() to see the failing frame counts

Submitted by Ville Syrjälä on Dec. 14, 2015, 8:15 p.m.

Details

Message ID 1450124156-12679-7-git-send-email-ville.syrjala@linux.intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in IGT (deprecated)

Not browsing as part of any series.

Commit Message

Ville Syrjälä Dec. 14, 2015, 8:15 p.m.
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Use igt_assert_eq() to compare the frame numbers during the frame
sequence tests so that we'll see exactly what the bad frame counts
are when the test fails.

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

Patch hide | download patch | download mbox

diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c
index a3292c225203..bfb14780fa72 100644
--- a/tests/kms_pipe_crc_basic.c
+++ b/tests/kms_pipe_crc_basic.c
@@ -176,7 +176,7 @@  test_read_crc_for_output(data_t *data, int pipe, igt_output_t *output,
 
 		if (flags & TEST_SEQUENCE)
 			for (j = 0; j < (N_CRCS - 1); j++)
-				igt_assert(crcs[j].frame + 1 == crcs[j + 1].frame);
+				igt_assert_eq(crcs[j].frame + 1, crcs[j + 1].frame);
 
 		free(crcs);
 		igt_pipe_crc_free(pipe_crc);