From 6cb67e9ab59ee47b724d8697f074ee4e0d1dc808 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Fri, 7 Aug 2015 14:28:41 -0500 Subject: in volume-control-test, tell the test fixture where to find the sandboxed gsettings --- tests/volume-control-test.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') 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); -- cgit v1.2.3