mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
tests: Isolate directories in gdbus-peer test
So that the tests all end up using separate `.dbus-keyring` directories, and hence not racing to create and acquire lock files, use `G_TEST_OPTION_ISOLATE_DIRS` to ensure they all run in separate disposable directories. This has the added benefit of meaning they don’t touch the developer’s actual `$HOME` directory. This reduces the false-failure rate of `gdbus-peer` by a factor of 9 for me on my local machine. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1912
This commit is contained in:
parent
833579d982
commit
6fb38c3f25
@ -1922,7 +1922,7 @@ main (int argc,
|
||||
gint ret;
|
||||
GDBusNodeInfo *introspection_data = NULL;
|
||||
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
g_test_init (&argc, &argv, G_TEST_OPTION_ISOLATE_DIRS, NULL);
|
||||
|
||||
introspection_data = g_dbus_node_info_new_for_xml (test_interface_introspection_xml, NULL);
|
||||
g_assert (introspection_data != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user