mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 08:08:04 +02:00
test: Set have_result for image matches
Causes the log to contain information about the reference imagery used.
This commit is contained in:
parent
8f85c2d77c
commit
b0760826f3
1 changed files with 13 additions and 3 deletions
|
|
@ -1228,24 +1228,28 @@ REPEAT:
|
|||
|
||||
if (cairo_test_files_equal (test_filename, pass_filename)) {
|
||||
cairo_test_log (ctx, "PNG file exactly matches last pass.\n");
|
||||
have_result = TRUE;
|
||||
cairo_surface_destroy (test_image);
|
||||
ret = CAIRO_TEST_SUCCESS;
|
||||
goto UNWIND_CAIRO;
|
||||
}
|
||||
if (cairo_test_files_equal (out_png_path, ref_png_path)) {
|
||||
cairo_test_log (ctx, "PNG file exactly reference image.\n");
|
||||
cairo_test_log (ctx, "PNG file exactly matches reference image.\n");
|
||||
have_result = TRUE;
|
||||
cairo_surface_destroy (test_image);
|
||||
ret = CAIRO_TEST_SUCCESS;
|
||||
goto UNWIND_CAIRO;
|
||||
}
|
||||
if (cairo_test_files_equal (out_png_path, new_png_path)) {
|
||||
cairo_test_log (ctx, "PNG file exactly current failure image.\n");
|
||||
cairo_test_log (ctx, "PNG file exactly matches current failure image.\n");
|
||||
have_result = TRUE;
|
||||
cairo_surface_destroy (test_image);
|
||||
ret = CAIRO_TEST_NEW;
|
||||
goto UNWIND_CAIRO;
|
||||
}
|
||||
if (cairo_test_files_equal (out_png_path, xfail_png_path)) {
|
||||
cairo_test_log (ctx, "PNG file exactly known failure image.\n");
|
||||
cairo_test_log (ctx, "PNG file exactly matches known failure image.\n");
|
||||
have_result = TRUE;
|
||||
cairo_surface_destroy (test_image);
|
||||
ret = CAIRO_TEST_XFAILURE;
|
||||
goto UNWIND_CAIRO;
|
||||
|
|
@ -1260,18 +1264,21 @@ REPEAT:
|
|||
} else {
|
||||
if (cairo_test_files_equal (out_png_path, ref_png_path)) {
|
||||
cairo_test_log (ctx, "PNG file exactly matches reference image.\n");
|
||||
have_result = TRUE;
|
||||
cairo_surface_destroy (test_image);
|
||||
ret = CAIRO_TEST_SUCCESS;
|
||||
goto UNWIND_CAIRO;
|
||||
}
|
||||
if (cairo_test_files_equal (out_png_path, new_png_path)) {
|
||||
cairo_test_log (ctx, "PNG file exactly matches current failure image.\n");
|
||||
have_result = TRUE;
|
||||
cairo_surface_destroy (test_image);
|
||||
ret = CAIRO_TEST_NEW;
|
||||
goto UNWIND_CAIRO;
|
||||
}
|
||||
if (cairo_test_files_equal (out_png_path, xfail_png_path)) {
|
||||
cairo_test_log (ctx, "PNG file exactly matches known failure image.\n");
|
||||
have_result = TRUE;
|
||||
cairo_surface_destroy (test_image);
|
||||
ret = CAIRO_TEST_XFAILURE;
|
||||
goto UNWIND_CAIRO;
|
||||
|
|
@ -1280,18 +1287,21 @@ REPEAT:
|
|||
|
||||
if (cairo_test_files_equal (out_png_path, base_ref_png_path)) {
|
||||
cairo_test_log (ctx, "PNG file exactly reference image.\n");
|
||||
have_result = TRUE;
|
||||
cairo_surface_destroy (test_image);
|
||||
ret = CAIRO_TEST_SUCCESS;
|
||||
goto UNWIND_CAIRO;
|
||||
}
|
||||
if (cairo_test_files_equal (out_png_path, base_new_png_path)) {
|
||||
cairo_test_log (ctx, "PNG file exactly current failure image.\n");
|
||||
have_result = TRUE;
|
||||
cairo_surface_destroy (test_image);
|
||||
ret = CAIRO_TEST_NEW;
|
||||
goto UNWIND_CAIRO;
|
||||
}
|
||||
if (cairo_test_files_equal (out_png_path, base_xfail_png_path)) {
|
||||
cairo_test_log (ctx, "PNG file exactly known failure image.\n");
|
||||
have_result = TRUE;
|
||||
cairo_surface_destroy (test_image);
|
||||
ret = CAIRO_TEST_XFAILURE;
|
||||
goto UNWIND_CAIRO;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue