diff options
author | Benjamin Otte <otte@redhat.com> | 2010-04-29 12:11:48 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-04-29 12:12:51 +0200 |
commit | b0760826f30f63637561b353e7eed1913036da2d (patch) | |
tree | 67f3c776cbc2077992959a92e2514dcfe8093ba8 /test/cairo-test.c | |
parent | 8f85c2d77cc2ca7984f9771c0096fbad798dbde8 (diff) | |
download | cairo-b0760826f30f63637561b353e7eed1913036da2d.tar.gz |
test: Set have_result for image matches
Causes the log to contain information about the reference imagery used.
Diffstat (limited to 'test/cairo-test.c')
-rw-r--r-- | test/cairo-test.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/test/cairo-test.c b/test/cairo-test.c index 286df09ad..f78519f1e 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -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; |