summaryrefslogtreecommitdiff
path: root/tests/kms_universal_plane.c
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2015-03-05 15:01:00 -0800
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-03-06 18:06:10 +0100
commit07be8fec156ba8405f2aafa3a37fe29d06893f05 (patch)
tree0591bf1aca05c2c8f5f89bb0400d948e8a2d0fe6 /tests/kms_universal_plane.c
parent14a3d88a0967718124fc3b6c111a877203da025f (diff)
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 <matthew.d.roper@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'tests/kms_universal_plane.c')
-rw-r--r--tests/kms_universal_plane.c6
1 files changed, 3 insertions, 3 deletions
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);