diff options
Diffstat (limited to 'test/dash-offset-negative.c')
-rw-r--r-- | test/dash-offset-negative.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/test/dash-offset-negative.c b/test/dash-offset-negative.c index adfe2655..8766cc57 100644 --- a/test/dash-offset-negative.c +++ b/test/dash-offset-negative.c @@ -34,15 +34,6 @@ * https://bugs.freedesktop.org/show_bug.cgi?id=2729 */ -static cairo_test_draw_function_t draw; - -static const cairo_test_t test = { - "dash-offset-negative", - "Tests cairo_set_dash with a negative offset", - IMAGE_WIDTH, IMAGE_HEIGHT, - draw -}; - static cairo_test_status_t draw (cairo_t *cr, int width, int height) { @@ -101,8 +92,9 @@ draw (cairo_t *cr, int width, int height) return CAIRO_TEST_SUCCESS; } -int -main (void) -{ - return cairo_test (&test); -} +CAIRO_TEST (dash_offset_negative, + "Tests cairo_set_dash with a negative offset", + "dash, stroke", /* keywords */ + NULL, /* requirements */ + IMAGE_WIDTH, IMAGE_HEIGHT, + NULL, draw) |