From 07be8fec156ba8405f2aafa3a37fe29d06893f05 Mon Sep 17 00:00:00 2001 From: Matt Roper Date: Thu, 5 Mar 2015 15:01:00 -0800 Subject: igt.cocci: Replace igt_assert() with igt_assert_CMP() where possible The integer comparison macros give us better error output by including the actual values that failed the comparison. Signed-off-by: Matt Roper Signed-off-by: Daniel Vetter --- tests/kms_universal_plane.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/kms_universal_plane.c') diff --git a/tests/kms_universal_plane.c b/tests/kms_universal_plane.c index 077a9487..a851994a 100644 --- a/tests/kms_universal_plane.c +++ b/tests/kms_universal_plane.c @@ -148,8 +148,8 @@ functional_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output) else if (display->pipes[pipe].planes[i].is_cursor) num_cursor++; - igt_assert(num_primary == 1); - igt_assert(num_cursor <= 1); + igt_assert_eq(num_primary, 1); + igt_assert_lte(num_cursor, 1); primary = igt_output_get_plane(output, IGT_PLANE_PRIMARY); sprite = igt_output_get_plane(output, IGT_PLANE_2); @@ -513,7 +513,7 @@ pageflip_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output) do { ret = select(data->drm_fd + 1, &fds, NULL, NULL, &timeout); } while (ret < 0 && errno == EINTR); - igt_assert(ret == 1); + igt_assert_eq(ret, 1); igt_assert(drmHandleEvent(data->drm_fd, &evctx) == 0); igt_plane_set_fb(primary, NULL); -- cgit v1.2.3