summaryrefslogtreecommitdiff
path: root/test/cairo-test.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-09-25 01:08:46 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-09-25 01:11:50 +0100
commit453443d77acadc705a4b9ddeb96f853364c96ad2 (patch)
tree42f2fd7632d84dc1f5913347fda1554824bf9419 /test/cairo-test.c
parente84ef3c54e0f95d321be8d8f47c5c9c60a2c6b3f (diff)
[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.
Diffstat (limited to 'test/cairo-test.c')
-rw-r--r--test/cairo-test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cairo-test.c b/test/cairo-test.c
index 08d3f5b5..99d767a3 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;
}