From 3b94d3f8ce21c92d3209e73ab48fda64beb0037e Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 29 Aug 2014 13:11:40 +0100 Subject: igt: Prettify igt_assert_eq() failure messages This just improves the language about the exact failure to reduce confusion. Signed-off-by: Chris Wilson --- tests/kms_pipe_crc_basic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/kms_pipe_crc_basic.c') diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index 510a7d54..c64ec67a 100644 --- a/tests/kms_pipe_crc_basic.c +++ b/tests/kms_pipe_crc_basic.c @@ -104,9 +104,9 @@ static void test_bad_command(data_t *data, const char *cmd) ctl = igt_debugfs_fopen("i915_display_crc_ctl", "r+"); written = fwrite(cmd, 1, strlen(cmd), ctl); fflush(ctl); - igt_assert_cmpint(written, ==, (strlen(cmd))); + igt_assert_eq(written, strlen(cmd)); igt_assert(ferror(ctl)); - igt_assert_cmpint(errno, ==, EINVAL); + igt_assert_eq(errno, EINVAL); fclose(ctl); } -- cgit v1.2.3