summaryrefslogtreecommitdiff
path: root/test/svg-clip.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-01-10 13:04:52 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-08-13 21:55:09 +0100
commitf85a4aec1f94f8fbd8e4db770ff1f70c3286fc90 (patch)
tree046aa588f02008f66abd5680a658d1489bd11fd1 /test/svg-clip.c
parent436c0c8be28546813139f391a62303d4c1894fc3 (diff)
downloadcairo-f85a4aec1f94f8fbd8e4db770ff1f70c3286fc90.tar.gz
[test] Export a function to check whether a target is enabled.
Allow individuals tests to check whether a test target is enabled - useful for those tests that circumvent cairo_test() and perform feature testing.
Diffstat (limited to 'test/svg-clip.c')
-rw-r--r--test/svg-clip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/svg-clip.c b/test/svg-clip.c
index 0dfab4d87..0286677f3 100644
--- a/test/svg-clip.c
+++ b/test/svg-clip.c
@@ -112,6 +112,10 @@ main (void)
cairo_surface_t *surface;
cairo_test_init (&ctx, "svg-clip");
+ if (! cairo_test_is_target_enabled (&ctx, "svg")) {
+ cairo_test_fini (&ctx);
+ return CAIRO_TEST_UNTESTED;
+ }
surface = cairo_svg_surface_create (filename,
WIDTH_IN_POINTS, HEIGHT_IN_POINTS);