Re: [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 <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAFu4+mXvnr=+1ifTpomPfNFFUPcSQk+-5twqJ0xCqBF6cMggdg@mail.gmail.com>
Sorry for misoperation. I'll re-send it.

2012/12/24 Chuanbo Weng <[email protected]>

> ---
>  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
>
>

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.