[glib/wip/gcleanup: 74/78] mimeapps: Don't make this test dependent on behavior of gvfs



commit f79e3208bad775ee79f7c35a2f11ce85ab102e7f
Author: Stef Walter <stefw gnome org>
Date:   Sun Nov 10 21:45:06 2013 +0100

    mimeapps: Don't make this test dependent on behavior of gvfs
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711799

 gio/tests/mimeapps.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/mimeapps.c b/gio/tests/mimeapps.c
index 35488e5..f993285 100644
--- a/gio/tests/mimeapps.c
+++ b/gio/tests/mimeapps.c
@@ -618,6 +618,9 @@ test_all (void)
 int
 main (int argc, char *argv[])
 {
+  /* Predictable test by not loading random gio modules */
+  g_setenv ("GIO_MODULE_DIR", "/non-existant", TRUE);
+
   g_test_init (&argc, &argv, NULL);
 
   setup ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]