[cairo] [PATCH] test: If render result exactly match base_ref_png, we should set the cmp_png_path to base_ref_png_path. For example, if there are "reference/a8-clear.egl.argb32.ref.png" and "reference/a8-clear.base.argb32.ref.png" in the reference directory. The a8-clear.egl.argb32.ref.png doesn't exactly match the render result, but a8-clear.base.argb32.ref.png does. Then we should set the "REFERENCE:" to "./reference/a8-clear.base.argb32.ref.png" in a8-clear.log. Or it will misguide users.
Chuanbo Weng
strgnm at gmail.com
Sun Dec 23 23:57:56 PST 2012
Sorry for misoperation. I'll re-send it.
2012/12/24 Chuanbo Weng <strgnm at gmail.com>
> ---
> test/cairo-test.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/test/cairo-test.c b/test/cairo-test.c
> index 076b014..949e175 100644
> --- a/test/cairo-test.c
> +++ b/test/cairo-test.c
> @@ -1242,6 +1242,7 @@ REPEAT:
> have_result = TRUE;
> cairo_surface_destroy (test_image);
> ret = CAIRO_TEST_SUCCESS;
> + cmp_png_path = base_ref_png_path;
> goto UNWIND_CAIRO;
> }
> if (cairo_test_files_equal (out_png_path, base_new_png_path)) {
> --
> 1.7.9.5
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121224/30eb9e36/attachment.html>
More information about the cairo
mailing list