Efreet: Don't update cache during tests
authorSebastian Dransfeld <sd@tango.flipp.net>
Tue, 12 Apr 2011 22:41:34 +0000 (22:41 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Tue, 12 Apr 2011 22:41:34 +0000 (22:41 +0000)
This makes efreet_init not fail if we pass non-existing paths as HOME
and XDG_* during testing.

SVN revision: 58602

legacy/efreet/src/tests/main.c

index dad1836f1a975128bb1c19d365aa68b6bd6ca39e..cd509cfd9bf291770d60d1462c61c71bd7fbeec1 100644 (file)
@@ -1,4 +1,7 @@
 #include "Efreet.h"
+/* no logging */
+#define EFREET_MODULE_LOG_DOM
+#include "efreet_private.h"
 #include "Efreet_Mime.h"
 #include "config.h"
 #include <Ecore.h>
@@ -132,6 +135,7 @@ main(int argc, char ** argv)
         }
     }
 
+    efreet_cache_update = 0;
     environment_store();
     for (i = 0; tests[i].name; i++)
     {