summaryrefslogtreecommitdiff
path: root/test/extend-reflect.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/extend-reflect.c')
-rw-r--r--test/extend-reflect.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/test/extend-reflect.c b/test/extend-reflect.c
index 6175657b..16b08c15 100644
--- a/test/extend-reflect.c
+++ b/test/extend-reflect.c
@@ -2,16 +2,7 @@
#include "cairo-test.h"
#include <stdio.h>
-const char png_filename[] = "romedalen.png";
-
-static cairo_test_draw_function_t draw;
-
-static const cairo_test_t test = {
- "extend-reflect",
- "Test CAIRO_EXTEND_REFLECT for surface patterns",
- 256 + 32*2, 192 + 32*2,
- draw
-};
+static const char *png_filename = "romedalen.png";
static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
@@ -30,8 +21,9 @@ draw (cairo_t *cr, int width, int height)
return CAIRO_TEST_SUCCESS;
}
-int
-main (void)
-{
- return cairo_test (&test);
-}
+CAIRO_TEST (extend_reflect,
+ "Test CAIRO_EXTEND_REFLECT for surface patterns",
+ "extend", /* keywords */
+ NULL, /* requirements */
+ 256 + 32*2, 192 + 32*2,
+ NULL, draw)