summaryrefslogtreecommitdiff
path: root/test/self-copy-overlap.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/self-copy-overlap.c')
-rw-r--r--test/self-copy-overlap.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/test/self-copy-overlap.c b/test/self-copy-overlap.c
index 5b1da907..d9e6caa3 100644
--- a/test/self-copy-overlap.c
+++ b/test/self-copy-overlap.c
@@ -27,17 +27,7 @@
#include "cairo-test.h"
-static cairo_test_draw_function_t draw;
-
/* This test is only interesting if the target has alpha */
-static const cairo_test_t test = {
- "self-copy-overlap",
- "Tests painting to itself using itself as the source"
- "\nBackends treat this case inconsistently---vector backends are creating snapshots.",
- 200, 200,
- draw
-};
-
static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
{
@@ -50,8 +40,10 @@ draw (cairo_t *cr, int width, int height)
return CAIRO_TEST_SUCCESS;
}
-int
-main (void)
-{
- return cairo_test (&test);
-}
+CAIRO_TEST (self_copy_overlap,
+ "Tests painting to itself using itself as the source"
+ "\nBackends treat this case inconsistently---vector backends are creating snapshots.",
+ "XFAIL=!image,test-meta,test-paginated,pdf,ps,svg self-copy", /* keywords */
+ NULL, /* requirements */
+ 200, 200,
+ NULL, draw)