summaryrefslogtreecommitdiff
path: root/test/mask-transformed-similar.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mask-transformed-similar.c')
-rw-r--r--test/mask-transformed-similar.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/test/mask-transformed-similar.c b/test/mask-transformed-similar.c
index ea28ea42..c37deb2c 100644
--- a/test/mask-transformed-similar.c
+++ b/test/mask-transformed-similar.c
@@ -26,16 +26,8 @@
#include "cairo-test.h"
-static cairo_test_draw_function_t draw;
static const char png_filename[] = "romedalen.png";
-static const cairo_test_t test = {
- "mask-transformed-similar",
- "Test that cairo_mask() is affected properly by the CTM and not the image",
- 80, 80,
- draw
-};
-
static cairo_surface_t *
create_mask (cairo_t *dst, int width, int height)
{
@@ -98,8 +90,9 @@ draw (cairo_t *cr, int width, int height)
return CAIRO_TEST_SUCCESS;
}
-int
-main (void)
-{
- return cairo_test (&test);
-}
+CAIRO_TEST (mask_transformed_similar,
+ "Test that cairo_mask() is affected properly by the CTM and not the image",
+ "mask", /* keywords */
+ NULL, /* requirements */
+ 80, 80,
+ NULL, draw)