[folks] all tests: disable non-local GIO VFS backends, such as gvfs



commit bfab3ee28c15a4e3ed6d7a87a113b472afebd495
Author: Simon McVittie <simon mcvittie collabora co uk>
Date:   Thu Apr 4 15:39:42 2013 +0100

    all tests: disable non-local GIO VFS backends, such as gvfs
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=697261
    Signed-off-by: Simon McVittie <simon mcvittie collabora co uk>
    Reviewed-by: Philip Withnall <philip tecnocode co uk>

 tests/lib/test-case.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/lib/test-case.vala b/tests/lib/test-case.vala
index 4c31851..a772eac 100644
--- a/tests/lib/test-case.vala
+++ b/tests/lib/test-case.vala
@@ -41,6 +41,10 @@ public abstract class Folks.TestCase : Object
     {
       Intl.setlocale (LocaleCategory.ALL, "");
 
+      /* Turn off use of gvfs. If using GTestDBus it's unavailable,
+       * and if not it's pointless: all we need is the local filesystem. */
+      Environment.set_variable ("GIO_USE_VFS", "local", true);
+
       LogAdaptor.set_up ();
       this._suite = new GLib.TestSuite (name);
 


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