diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-08-29 13:11:40 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-08-29 13:20:36 +0100 |
commit | 3b94d3f8ce21c92d3209e73ab48fda64beb0037e (patch) | |
tree | 8467a7e779de0d82be02b212196fc6e5f39b3486 /tests/kms_pipe_crc_basic.c | |
parent | d0a41b47ea5ed1ac5ca45f83d2917c6ad41b644a (diff) |
igt: Prettify igt_assert_eq() failure messages
This just improves the language about the exact failure to reduce
confusion.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/kms_pipe_crc_basic.c')
-rw-r--r-- | tests/kms_pipe_crc_basic.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |