[cairo-commit] test/cairo-test.c

Chris Wilson ickle at kemper.freedesktop.org
Wed Sep 24 17:13:17 PDT 2008


 test/cairo-test.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 453443d77acadc705a4b9ddeb96f853364c96ad2
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Sep 25 01:08:46 2008 +0100

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

diff --git a/test/cairo-test.c b/test/cairo-test.c
index 08d3f5b..99d767a 100644
--- a/test/cairo-test.c
+++ b/test/cairo-test.c
@@ -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;
 	    }


More information about the cairo-commit mailing list