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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user