tests: Use testing API instead of duplicating it

This commit is contained in:
Benjamin Otte 2013-05-15 15:25:05 +02:00
parent 772470fb9d
commit 06a8fac3e9

View File

@ -21,17 +21,14 @@ test_type (GType t)
int
main (int argc, char *argv[])
{
GType *tp;
gint i;
const GType *tp;
guint i, n;
gtk_init (&argc, &argv);
tp = g_new0 (GType, 1000);
#undef GDK_WINDOWING_X11
#include "../gtktypefuncs.c"
*tp = 0;
tp = gtk_test_list_all_types (&n);
for (i = 0; tp[i]; i++)
for (i = 0; i < n; n++)
test_type (tp[i]);
return 0;