summaryrefslogtreecommitdiff
path: root/test/create-from-png-stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/create-from-png-stream.c')
-rw-r--r--test/create-from-png-stream.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/test/create-from-png-stream.c b/test/create-from-png-stream.c
index 6dedeb89..e03ccc74 100644
--- a/test/create-from-png-stream.c
+++ b/test/create-from-png-stream.c
@@ -31,15 +31,6 @@
#define WIDTH 2
#define HEIGHT 2
-static cairo_test_draw_function_t draw;
-
-static const cairo_test_t test = {
- "create-from-png-stream",
- "Tests the creation of an image surface from a PNG using a FILE *",
- WIDTH, HEIGHT,
- draw
-};
-
static cairo_status_t
read_png_from_file (void *closure, unsigned char *data, unsigned int length)
{
@@ -96,8 +87,9 @@ draw (cairo_t *cr, int width, int height)
return CAIRO_TEST_SUCCESS;
}
-int
-main (void)
-{
- return cairo_test (&test);
-}
+CAIRO_TEST (create_from_png_stream,
+ "Tests the creation of an image surface from a PNG using a FILE *",
+ "png", /* keywords */
+ NULL, /* requirements */
+ WIDTH, HEIGHT,
+ NULL, draw)