tests: Remove usage of igt_crc_equal and _non_null

Tests should positively check for crc matches, not for mismatches.
Enforce this by only exposing and igt_assert function for comparing
crcs.

For the few tests which didn't just do this as consistency checks but
to do functional tests add FIXME comments that some reference crc
values are missing.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
Daniel Vetter
2015-02-27 22:04:18 +01:00
parent e588f6dfa6
commit 562bbe12f6
6 changed files with 6 additions and 56 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ test_plane_position_with_output(data_t *data,
if (flags & TEST_POSITION_FULLY_COVERED)
igt_assert_crc_equal(&test.reference_crc, &crc);
else
igt_assert(!igt_crc_equal(&test.reference_crc, &crc));
;/* FIXME: missing reference CRCs */
igt_assert_crc_equal(&crc, &crc2);