summaryrefslogtreecommitdiff
path: root/test/create-for-stream.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2008-01-16 08:11:51 -0800
committerCarl Worth <cworth@cworth.org>2008-01-16 08:16:06 -0800
commite49db8ed3ea5727e00e2734a8877af860371be69 (patch)
tree5fbd15f3c44535fa3f30c0f318f992e0ec450171 /test/create-for-stream.c
parent57c2b75c229ac7811c573548ae50e6b0e4ecf862 (diff)
downloadcairo-e49db8ed3ea5727e00e2734a8877af860371be69.tar.gz
Fix create-for-stream test to log its failure properly
Without this, a failure of this test won't be nicely reported in the post-make-check summary. (Also fix a silly little typo in the svg-clip test.)
Diffstat (limited to 'test/create-for-stream.c')
-rw-r--r--test/create-for-stream.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/create-for-stream.c b/test/create-for-stream.c
index d6cb23b1c..379412fc5 100644
--- a/test/create-for-stream.c
+++ b/test/create-for-stream.c
@@ -225,19 +225,22 @@ test_surface (const char *backend,
return CAIRO_TEST_SUCCESS;
}
-
int
main (void)
{
cairo_test_status_t status = CAIRO_TEST_SUCCESS;
cairo_test_status_t test_status;
+ const char test_name[] = "create-for-stream";
- cairo_test_init ("create-for-stream");
+ cairo_test_init (test_name);
#if CAIRO_HAS_PS_SURFACE
test_status = test_surface ("ps", "create-for-stream.ps",
cairo_ps_surface_create,
cairo_ps_surface_create_for_stream);
+ cairo_test_log ("TEST: %s TARGET: %s RESULT: %s\n",
+ test_name, "ps",
+ test_status ? "FAIL" : "PASS");
if (status == CAIRO_TEST_SUCCESS)
status = test_status;
#endif
@@ -246,6 +249,9 @@ main (void)
test_status = test_surface ("pdf", "create-for-stream.pdf",
cairo_pdf_surface_create,
cairo_pdf_surface_create_for_stream);
+ cairo_test_log ("TEST: %s TARGET: %s RESULT: %s\n",
+ test_name, "pdf",
+ test_status ? "FAIL" : "PASS");
if (status == CAIRO_TEST_SUCCESS)
status = test_status;
#endif
@@ -254,6 +260,9 @@ main (void)
test_status = test_surface ("svg", "create-for-stream.svg",
cairo_svg_surface_create,
cairo_svg_surface_create_for_stream);
+ cairo_test_log ("TEST: %s TARGET: %s RESULT: %s\n",
+ test_name, "svg",
+ test_status ? "FAIL" : "PASS");
if (status == CAIRO_TEST_SUCCESS)
status = test_status;
#endif