aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/volume-control-test.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/volume-control-test.cc b/tests/volume-control-test.cc
index 41e1886..5022245 100644
--- a/tests/volume-control-test.cc
+++ b/tests/volume-control-test.cc
@@ -32,7 +32,11 @@ class VolumeControlTest : public ::testing::Test
DbusTestService * service = NULL;
GDBusConnection * session = NULL;
- virtual void SetUp() {
+ virtual void SetUp() override {
+
+ g_setenv("GSETTINGS_SCHEMA_DIR", SCHEMA_DIR, TRUE);
+ g_setenv("GSETTINGS_BACKEND", "memory", TRUE);
+
service = dbus_test_service_new(NULL);
dbus_test_service_start_tasks(service);