tests: Put random number into local variable

This way, we can see what function had previously been called when the
checks fail.
This commit is contained in:
Benjamin Otte 2011-12-10 02:04:27 +01:00
parent 78aad2d35c
commit 2a59265df1

View File

@ -259,8 +259,11 @@ dance (gpointer treeview)
expand,
collapse
};
guint i;
funcs[g_random_int_range (0, G_N_ELEMENTS(funcs))] (treeview);
i = g_random_int_range (0, G_N_ELEMENTS(funcs));
funcs[i] (treeview);
check_sanity (treeview);