summaryrefslogtreecommitdiff
path: root/test/self-copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/self-copy.c')
-rw-r--r--test/self-copy.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/test/self-copy.c b/test/self-copy.c
index 1afb31e6..32a375a0 100644
--- a/test/self-copy.c
+++ b/test/self-copy.c
@@ -29,15 +29,6 @@
#define SIZE 40
-static cairo_test_draw_function_t draw;
-
-static const cairo_test_t test = {
- "self-copy",
- "Test copying from a surface to itself with a clip",
- SIZE, SIZE,
- draw
-};
-
static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
{
@@ -85,8 +76,9 @@ draw (cairo_t *cr, int width, int height)
}
-int
-main (void)
-{
- return cairo_test (&test);
-}
+CAIRO_TEST (self_copy,
+ "Test copying from a surface to itself with a clip",
+ "paint", /* keywords */
+ NULL, /* requirements */
+ SIZE, SIZE,
+ NULL, draw)