diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2015-08-07 14:28:41 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2015-08-07 14:28:41 -0500 |
commit | 6cb67e9ab59ee47b724d8697f074ee4e0d1dc808 (patch) | |
tree | cec51d95e62f9c7d911a0d0c8cb38bf8955895e6 | |
parent | b19e7575091ba5c310cf6de82d3a984bb1b193cd (diff) | |
download | ayatana-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
-rw-r--r-- | tests/volume-control-test.cc | 6 |
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); |