diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-09-27 21:53:21 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-09-27 21:53:21 +0100 |
commit | cca1fc6358e9d0213dd2b41a5bfd1629eec6511e (patch) | |
tree | 0d129d14ac7b72a2d691a459e9c5dd292079483f /test/fallback-resolution.c | |
parent | 39e4a0bcd04191eecfc593653a4ba32a28fcac6a (diff) |
[test] Fix target specific tests for recent SVG/PS version split.
A few tests explicitly checked whether the "ps" or "svg" target was
enabled and this broke because of the name change. So fixup, to run
the generic test if either PS or SVG target is enabled as appropriate.
Diffstat (limited to 'test/fallback-resolution.c')
-rw-r--r-- | test/fallback-resolution.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/fallback-resolution.c b/test/fallback-resolution.c index 7c33c1e27..60ff78bf6 100644 --- a/test/fallback-resolution.c +++ b/test/fallback-resolution.c @@ -129,7 +129,9 @@ main (void) break; case PS: #if CAIRO_HAS_PS_SURFACE - if (cairo_test_is_target_enabled (&ctx, "ps")) { + if (cairo_test_is_target_enabled (&ctx, "ps2") || + cairo_test_is_target_enabled (&ctx, "ps3")) + { surface = cairo_ps_surface_create (backend_filename[backend], SIZE, SIZE); cairo_boilerplate_ps_surface_force_fallbacks (surface); @@ -138,7 +140,9 @@ main (void) break; case SVG: #if CAIRO_HAS_SVG_SURFACE - if (cairo_test_is_target_enabled (&ctx, "svg")) { + if (cairo_test_is_target_enabled (&ctx, "svg11") || + cairo_test_is_target_enabled (&ctx, "svg12")) + { surface = cairo_svg_surface_create (backend_filename[backend], SIZE, SIZE); cairo_boilerplate_svg_surface_force_fallbacks (surface); |