[evolution/wip/webkit2] test-html-editor-units: Force the memory GSettings backend
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] test-html-editor-units: Force the memory GSettings backend
- Date: Wed, 29 Jun 2016 13:33:47 +0000 (UTC)
commit 6a6a643e45bd52f1abe7c106d4545bfee4f52514
Author: Milan Crha <mcrha redhat com>
Date: Wed Jun 29 15:31:58 2016 +0200
test-html-editor-units: Force the memory GSettings backend
...to not overwrite user settings when playing with them. It also ensures
that the test will run with default settings, until changed.
e-util/test-html-editor-units.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/e-util/test-html-editor-units.c b/e-util/test-html-editor-units.c
index 011d4be..a46d396 100644
--- a/e-util/test-html-editor-units.c
+++ b/e-util/test-html-editor-units.c
@@ -195,6 +195,11 @@ main (gint argc,
setlocale (LC_ALL, "");
+ /* Force the memory GSettings backend, to not overwrite user settings
+ when playing with them. It also ensures that the test will run with
+ default settings, until changed. */
+ g_setenv ("GSETTINGS_BACKEND", "memory", TRUE);
+
g_test_init (&argc, &argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]