+2008-08-15 Sven Herzberg <sven@imendio.com>
+
+ Use the g_test_*() API for this test
+ reviewed by: Richard Hult
+
+ * gdk/tests/check-gdk-cairo.c: use the g_test_*() API to permit adding
+ new tests
+
2008-08-15 Sven Herzberg <sven@imendio.com>
Prepare for using the g_test_*() API
cairo_stroke (cr);
}
-int
-main (int argc,
- char**argv)
+static void
+test_pixmap_orientation (void)
{
GdkPixmap* pixmap;
GdkPixbuf* pixbuf;
guchar* data_imagesrf;
guint i;
- gdk_init (&argc, &argv);
-
/* create "platform.png" via GdkPixmap */
pixmap = gdk_pixmap_new (NULL /* drawable */, 100 /* w */, 80 /* h */, 24 /* d */);
cr = gdk_cairo_create (pixmap);
g_unlink ("gdksurface.png");
g_unlink ("cairosurface.png");
+}
+
+int
+main (int argc,
+ char**argv)
+{
+ g_test_init (&argc, &argv, NULL);
+ gdk_init (&argc, &argv);
+
+ g_test_add_func ("/gdk/pixmap/orientation",
+ test_pixmap_orientation);
- return 0;
+ return g_test_run ();
}