[epiphany] Fix test-ephy-encodings and test-ephy-file-helpers



commit ffc941592e4be725e1aed874210e3de5f3dd824a
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Feb 3 13:14:08 2017 -0600

    Fix test-ephy-encodings and test-ephy-file-helpers
    
    They need to be set up to use the newly-relocatable state schema.

 tests/ephy-encodings-test.c    |    3 +++
 tests/ephy-file-helpers-test.c |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tests/ephy-encodings-test.c b/tests/ephy-encodings-test.c
index ac0839c..197c988 100644
--- a/tests/ephy-encodings-test.c
+++ b/tests/ephy-encodings-test.c
@@ -24,6 +24,7 @@
 #include "ephy-embed-prefs.h"
 #include "ephy-encodings.h"
 #include "ephy-file-helpers.h"
+#include "ephy-settings.h"
 #include "ephy-shell.h"
 
 #include <gtk/gtk.h>
@@ -96,6 +97,8 @@ main (int argc, char *argv[])
   g_test_add_func ("/src/ephy-encodings/get",
                    test_ephy_encodings_get);
 
+  ephy_settings_ensure_schema_for_path (EPHY_PREFS_STATE_SCHEMA, "/org/gnome/epiphany/state/");
+
   ret = g_test_run ();
 
   g_object_unref (ephy_shell_get_default ());
diff --git a/tests/ephy-file-helpers-test.c b/tests/ephy-file-helpers-test.c
index 6b8c3d3..7bb49b9 100644
--- a/tests/ephy-file-helpers-test.c
+++ b/tests/ephy-file-helpers-test.c
@@ -329,6 +329,8 @@ main (int argc, char *argv[])
 
   ephy_debug_init ();
 
+  ephy_settings_ensure_schema_for_path (EPHY_PREFS_STATE_SCHEMA, "/org/gnome/epiphany/state/");
+
   g_test_add_func ("/lib/ephy-file-helpers/init",
                    test_ephy_file_helpers_init);
 


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