mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
78aad2d35c
commit
2a59265df1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user