summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2020-07-14 19:56:32 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2020-09-14 19:13:17 +0300
commitccfb27dab0f06c009d332053548920cb740e4258 (patch)
tree61c2e83c41e11daadbdf33ca1938f803e17ec406
parent66766dd7cd99465d977ac07db8a2413dbbfe8d84 (diff)
tests/kms_color_helper: Respect --skip-crc-compare
Unlike igt_assert_crc_equal() crc_equal() does not respect the --skip-crc-compare command line argument. Let's remedy that. Reviewed-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
-rw-r--r--tests/kms_color_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_color_helper.c b/tests/kms_color_helper.c
index 2605146a..ac8e8454 100644
--- a/tests/kms_color_helper.c
+++ b/tests/kms_color_helper.c
@@ -247,7 +247,8 @@ get_blob(data_t *data, igt_pipe_t *pipe, enum igt_atomic_crtc_properties prop)
bool crc_equal(igt_crc_t *a, igt_crc_t *b)
{
- return memcmp(a->crc, b->crc, sizeof(a->crc[0]) * a->n_words) == 0;
+ return igt_skip_crc_compare ||
+ memcmp(a->crc, b->crc, sizeof(a->crc[0]) * a->n_words) == 0;
}
int