mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 13:40:31 +00:00
tests: Use testing API instead of duplicating it
This commit is contained in:
parent
772470fb9d
commit
06a8fac3e9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user