mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 11:08:12 +02:00
[test] Write the OUTPUT filename to the log if we match the vector surface.
If the vector surface matches the output from last time, then the rasterisation is skipped - but we need to write the expected OUTPUT filename to the log so that the image is referenced from index.html.
This commit is contained in:
parent
e84ef3c54e
commit
453443d77a
1 changed files with 3 additions and 0 deletions
|
|
@ -715,6 +715,7 @@ cairo_test_for_target (cairo_test_context_t *ctx,
|
|||
"Error: Failed to write output image: %s\n",
|
||||
cairo_status_to_string (diff_status));
|
||||
}
|
||||
have_output = TRUE;
|
||||
cairo_surface_destroy (test_image);
|
||||
|
||||
ret = CAIRO_TEST_FAILURE;
|
||||
|
|
@ -737,6 +738,7 @@ cairo_test_for_target (cairo_test_context_t *ctx,
|
|||
if (cairo_test_files_equal (test_filename, pass_filename)) {
|
||||
/* identical output as last known PASS */
|
||||
cairo_test_log (ctx, "Vector surface matches last pass.\n");
|
||||
have_output = TRUE;
|
||||
ret = CAIRO_TEST_SUCCESS;
|
||||
goto UNWIND_CAIRO;
|
||||
}
|
||||
|
|
@ -744,6 +746,7 @@ cairo_test_for_target (cairo_test_context_t *ctx,
|
|||
/* identical output as last known FAIL, fail */
|
||||
cairo_test_log (ctx, "Vector surface matches last fail.\n");
|
||||
have_result = TRUE; /* presume these were kept around as well */
|
||||
have_output = TRUE;
|
||||
ret = CAIRO_TEST_FAILURE;
|
||||
goto UNWIND_CAIRO;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue