summaryrefslogtreecommitdiff
path: root/test/degenerate-pen.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/degenerate-pen.c')
-rw-r--r--test/degenerate-pen.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/test/degenerate-pen.c b/test/degenerate-pen.c
index deb7b2a3..ec8bd198 100644
--- a/test/degenerate-pen.c
+++ b/test/degenerate-pen.c
@@ -26,8 +26,6 @@
#include "cairo-test.h"
-static cairo_test_draw_function_t draw;
-
#define SIZE 20
#define PAD 5
#define WIDTH (PAD + 3 * (PAD + SIZE) + PAD)
@@ -50,13 +48,6 @@ static cairo_test_draw_function_t draw;
* pen doing slope comparisons.
*/
-static const cairo_test_t test = {
- "degenerate-pen",
- "Test round joins with a pen that's transformed to a line",
- WIDTH, HEIGHT,
- draw
-};
-
static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
{
@@ -106,8 +97,9 @@ draw (cairo_t *cr, int width, int height)
return CAIRO_TEST_SUCCESS;
}
-int
-main (void)
-{
- return cairo_test (&test);
-}
+CAIRO_TEST (degenerate_pen,
+ "Test round joins with a pen that's transformed to a line",
+ "degenerate", /* keywords */
+ NULL, /* requirements */
+ WIDTH, HEIGHT,
+ NULL, draw)