all tests: disable non-local GIO VFS backends, such as gvfs
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 4 Apr 2013 14:39:42 +0000 (15:39 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 5 Apr 2013 13:04:30 +0000 (14:04 +0100)
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

index 4c31851..a772eac 100644 (file)
@@ -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);