mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 14:23:03 +00:00
lib/debugfs: Add igt_assert_crc_equal
Because of hash collisions tests should only ever compare crc checksums for equality. Checking for inequality can result in random failures. To ensure this only expose and igt_assert function and use that. Follow-up patches will rework the code for tests which don't follow this requirement and try to compare for CRC inequality. v2: Rebase on top of Matt's kms_plane changes. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
@@ -319,7 +319,7 @@ test_plane(data_t *data, igt_output_t *output, enum pipe pipe, enum igt_plane pl
|
||||
igt_output_set_pipe(output, PIPE_ANY);
|
||||
igt_display_commit(&data->display);
|
||||
|
||||
igt_assert(igt_crc_equal(&ref_crc, &crc));
|
||||
igt_assert_crc_equal(&ref_crc, &crc);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -468,7 +468,7 @@ test_crtc(data_t *data, igt_output_t *output, enum pipe pipe)
|
||||
igt_output_set_pipe(output, PIPE_ANY);
|
||||
igt_display_commit(&data->display);
|
||||
|
||||
igt_assert(igt_crc_equal(&ref_crc, &crc));
|
||||
igt_assert_crc_equal(&ref_crc, &crc);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user