mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
tests: Reset the unnamed counter before a test run
This guarantees that objects are named the same all the time.
This commit is contained in:
parent
521f9e2f15
commit
4c0814a176
@ -100,7 +100,13 @@ done:
|
||||
return diff;
|
||||
}
|
||||
|
||||
static int unnamed_object_count = 0;
|
||||
static int unnamed_object_count;
|
||||
|
||||
static void
|
||||
setup_test (void)
|
||||
{
|
||||
unnamed_object_count = 0;
|
||||
}
|
||||
|
||||
static const char *
|
||||
get_name (AtkObject *accessible)
|
||||
@ -727,7 +733,7 @@ add_test_for_file (GFile *file)
|
||||
g_test_add_vtable (g_file_get_path (file),
|
||||
0,
|
||||
g_object_ref (file),
|
||||
NULL,
|
||||
(GTestFixtureFunc) setup_test,
|
||||
(GTestFixtureFunc) test_ui_file,
|
||||
(GTestFixtureFunc) g_object_unref);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user