mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-27 17:30:12 +01:00
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:
parent
4843199479
commit
2259ac4e93
1 changed files with 2 additions and 5 deletions
|
|
@ -2150,11 +2150,8 @@ verify_image(pixman_image_t *shot,
|
||||||
bool match = false;
|
bool match = false;
|
||||||
|
|
||||||
shot_fname = output_filename_for_test_case("shot", seq_no, "png");
|
shot_fname = output_filename_for_test_case("shot", seq_no, "png");
|
||||||
|
ref_fname = screenshot_reference_filename(ref_image, ref_seq_no);
|
||||||
if (ref_image) {
|
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) {
|
if (ref) {
|
||||||
match = check_images_match(ref, shot, clip, &gl_fuzz);
|
match = check_images_match(ref, shot, clip, &gl_fuzz);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue