summaryrefslogtreecommitdiff
path: root/test/fallback-resolution.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-06-29 10:49:51 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-06-29 10:49:51 +0100
commit4f745fbe3329a4fd5164c7bd7fe61c0395e8d1ee (patch)
treea1fa3fa9d5315e648df838185992b73584c5e2ef /test/fallback-resolution.c
parentd80f5580ef371a1d4b1746b4ad54d97274d2d6cd (diff)
downloadcairo-4f745fbe3329a4fd5164c7bd7fe61c0395e8d1ee.tar.gz
[test] Only run fallback-resolution for enabled targets
A secondary check that both activates CAIRO_TEST_TARGET and prevents a NULL-deref with the null test surface.
Diffstat (limited to 'test/fallback-resolution.c')
-rw-r--r--test/fallback-resolution.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/fallback-resolution.c b/test/fallback-resolution.c
index eab79959b..f5fcf07b3 100644
--- a/test/fallback-resolution.c
+++ b/test/fallback-resolution.c
@@ -354,6 +354,9 @@ preamble (cairo_test_context_t *ctx)
if (! target->is_vector)
continue;
+ if (! cairo_test_is_target_enabled (ctx, target->name))
+ continue;
+
format = cairo_boilerplate_content_name (target->content);
xasprintf (&base_name, "fallback-resolution.%s.%s",
target->name,