From: Colin Walters Date: Tue, 26 Jun 2012 00:46:28 +0000 (-0400) Subject: GTestDBus: Don't call into gvfs X-Git-Tag: 2.33.4~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6aa3b3bdd9f0fe1d9f2d2eed1d881bc189bcfe8;p=platform%2Fupstream%2Fglib.git GTestDBus: Don't call into gvfs https://bugzilla.gnome.org/show_bug.cgi?id=678808 --- diff --git a/gio/gtestdbus.c b/gio/gtestdbus.c index 171a4fe..ca71197 100644 --- a/gio/gtestdbus.c +++ b/gio/gtestdbus.c @@ -26,6 +26,7 @@ #include #include +#include #ifdef HAVE_UNISTD_H #include #endif @@ -522,6 +523,7 @@ start_daemon (GTestDBus *self) /* Write config file and set its path in argv */ file = write_config_file (self); config_path = g_file_get_path (file); + g_object_unref (file); config_arg = g_strdup_printf ("--config-file=%s", config_path); argv[2] = config_arg; @@ -570,9 +572,9 @@ start_daemon (GTestDBus *self) g_assert_no_error (error); g_io_channel_unref (channel); - g_file_delete (file, NULL, &error); - g_assert_no_error (error); - g_object_unref (file); + /* Don't use g_file_delete since it calls into gvfs */ + if (g_unlink (config_path) != 0) + g_assert_not_reached (); g_free (config_path); g_free (config_arg);