summaryrefslogtreecommitdiff
path: root/test/clip-twice.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/clip-twice.c')
-rw-r--r--test/clip-twice.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/test/clip-twice.c b/test/clip-twice.c
index 435b0c55..641b5514 100644
--- a/test/clip-twice.c
+++ b/test/clip-twice.c
@@ -28,15 +28,6 @@
#define WIDTH 64
#define HEIGHT 64
-static cairo_test_draw_function_t draw;
-
-static const cairo_test_t test = {
- "clip-twice",
- "Verifies that the clip mask is updated correctly when it constructed by setting the clip path twice.",
- WIDTH, HEIGHT,
- draw
-};
-
static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
{
@@ -75,8 +66,9 @@ draw (cairo_t *cr, int width, int height)
return CAIRO_TEST_SUCCESS;
}
-int
-main (void)
-{
- return cairo_test (&test);
-}
+CAIRO_TEST (clip_twice,
+ "Verifies that the clip mask is updated correctly when it constructed by setting the clip path twice.",
+ "clip", /* keywords */
+ NULL, /* requirements */
+ WIDTH, HEIGHT,
+ NULL, draw)