error = NULL;
- fd = open (path, O_RDONLY);
+ fd = g_open (path, O_RDONLY, 0);
g_unix_fd_list_append (fd_list, fd, &error);
g_assert_no_error (error);
close (fd);
GDBusNodeInfo *introspection_data = NULL;
gchar *tmpdir = NULL;
- g_type_init ();
g_test_init (&argc, &argv, NULL);
- g_unsetenv ("DBUS_SESSION_BUS_ADDRESS");
-
introspection_data = g_dbus_node_info_new_for_xml (test_interface_introspection_xml, NULL);
g_assert (introspection_data != NULL);
test_interface_introspection_data = introspection_data->interfaces[0];