summaryrefslogtreecommitdiff
path: root/test/surface-source.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-08-12 13:33:04 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-08-13 21:55:19 +0100
commitd56ea9cc879650db0ad2e6b05e483f30f9f21566 (patch)
treef58334bf9ca6d3eef3ef0e7f5813c8b211f3ddac /test/surface-source.c
parentf85a4aec1f94f8fbd8e4db770ff1f70c3286fc90 (diff)
downloadcairo-d56ea9cc879650db0ad2e6b05e483f30f9f21566.tar.gz
[test] Set CAIRO_TEST_UNTESTED to 77
77 is the magic exit code used by automake to indicate a skipped test, so by using it we can get a slightly more informative test log.
Diffstat (limited to 'test/surface-source.c')
-rw-r--r--test/surface-source.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/surface-source.c b/test/surface-source.c
index 61ab65e73..fc26d2cd2 100644
--- a/test/surface-source.c
+++ b/test/surface-source.c
@@ -77,6 +77,9 @@ draw (cairo_t *cr, int width, int height)
surface_size = SIZE - 30;
surface = create_source_surface (surface_size);
+ if (surface == NULL) /* can't create the source so skip the test */
+ return CAIRO_TEST_UNTESTED;
+
draw_pattern (surface, surface_size);
cairo_set_source_surface (cr, surface, 15, 15);
@@ -93,7 +96,7 @@ main (void)
surface = create_source_surface (SIZE);
if (surface == NULL) /* can't create the source so skip the test */
- return CAIRO_TEST_SUCCESS;
+ return CAIRO_TEST_UNTESTED;
cairo_surface_destroy (surface);