[cairo-commit] test/create-for-stream.c test/Makefile.am test/svg-clip.c
Carl Worth
cworth at kemper.freedesktop.org
Wed Jan 16 08:18:26 PST 2008
test/Makefile.am | 1 -
test/create-for-stream.c | 13 +++++++++++--
test/svg-clip.c | 2 +-
3 files changed, 12 insertions(+), 4 deletions(-)
New commits:
commit e49db8ed3ea5727e00e2734a8877af860371be69
Author: Carl Worth <cworth at cworth.org>
Date: Wed Jan 16 08:11:51 2008 -0800
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.)
diff --git a/test/Makefile.am b/test/Makefile.am
index b3c933a..b4bba9d 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -520,7 +520,6 @@ surface-pattern-scale-up$(EXEEXT)
# Any test that doesn't generate a log file goes here
NOLOG_TESTS = \
-create-for-stream \
user-data \
svg-surface \
svg-clip \
diff --git a/test/create-for-stream.c b/test/create-for-stream.c
index d6cb23b..379412f 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
diff --git a/test/svg-clip.c b/test/svg-clip.c
index 338f28f..77ae9e9 100644
--- a/test/svg-clip.c
+++ b/test/svg-clip.c
@@ -127,7 +127,7 @@ main (void)
cairo_destroy (cr);
cairo_surface_destroy (surface);
- printf ("svg-surface: Please check %s to make sure it looks happy.\n",
+ printf ("svg-clip: Please check %s to make sure it looks happy.\n",
filename);
cairo_test_fini ();
More information about the cairo-commit
mailing list