tests: Remove impossible condition

We always have the name of a reference image to compare to; comparison
is kind of impossible without one.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2025-10-13 12:03:56 +01:00 committed by Pekka Paalanen
parent 4843199479
commit 2259ac4e93

View file

@ -2150,11 +2150,8 @@ verify_image(pixman_image_t *shot,
bool match = false;
shot_fname = output_filename_for_test_case("shot", seq_no, "png");
if (ref_image) {
ref_fname = screenshot_reference_filename(ref_image, ref_seq_no);
ref = load_image_from_png(ref_fname);
}
ref_fname = screenshot_reference_filename(ref_image, ref_seq_no);
ref = load_image_from_png(ref_fname);
if (ref) {
match = check_images_match(ref, shot, clip, &gl_fuzz);