aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-08-07 14:28:41 -0500
committerCharles Kerr <charles.kerr@canonical.com>2015-08-07 14:28:41 -0500
commit6cb67e9ab59ee47b724d8697f074ee4e0d1dc808 (patch)
treecec51d95e62f9c7d911a0d0c8cb38bf8955895e6 /tests
parentb19e7575091ba5c310cf6de82d3a984bb1b193cd (diff)
downloadayatana-indicator-sound-6cb67e9ab59ee47b724d8697f074ee4e0d1dc808.tar.gz
ayatana-indicator-sound-6cb67e9ab59ee47b724d8697f074ee4e0d1dc808.tar.bz2
ayatana-indicator-sound-6cb67e9ab59ee47b724d8697f074ee4e0d1dc808.zip
in volume-control-test, tell the test fixture where to find the sandboxed gsettings
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);