[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
Mon Dec 24 07:47:11 PST 2012
---
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
More information about the cairo
mailing list