mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 13:52:54 +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:
@@ -134,7 +134,7 @@ static void do_single_test(data_t *data, int x, int y)
|
||||
igt_wait_for_vblank(data->drm_fd, data->pipe);
|
||||
igt_pipe_crc_collect_crc(pipe_crc, &ref_crc);
|
||||
/* Clear screen afterwards */
|
||||
igt_assert(igt_crc_equal(&crc, &ref_crc));
|
||||
igt_assert_crc_equal(&crc, &ref_crc);
|
||||
|
||||
igt_paint_color(cr, 0, 0, data->screenw, data->screenh,
|
||||
0.0, 0.0, 0.0);
|
||||
@@ -453,7 +453,7 @@ static void test_cursor_size(data_t *data)
|
||||
/* Clear screen afterwards */
|
||||
igt_paint_color(cr, 0, 0, data->screenw, data->screenh,
|
||||
0.0, 0.0, 0.0);
|
||||
igt_assert(igt_crc_equal(&crc[i], &ref_crc));
|
||||
igt_assert_crc_equal(&crc[i], &ref_crc);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user