aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-02-09 22:54:58 -0600
committerTed Gould <ted@gould.cx>2015-02-09 22:54:58 -0600
commit21f2318408b8a179d547ccde45ab38fc5d4367ef (patch)
tree68eb8b9b9dea8b4c0a5a0c98cf68a8af34447384
parent1f39e5ac1a2e9352c778f4caf2166b6d3b87996f (diff)
downloadayatana-indicator-sound-21f2318408b8a179d547ccde45ab38fc5d4367ef.tar.gz
ayatana-indicator-sound-21f2318408b8a179d547ccde45ab38fc5d4367ef.tar.bz2
ayatana-indicator-sound-21f2318408b8a179d547ccde45ab38fc5d4367ef.zip
Make sure to use the testing gsettings
-rw-r--r--tests/notifications-test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/notifications-test.cc b/tests/notifications-test.cc
index c2680ab..708061e 100644
--- a/tests/notifications-test.cc
+++ b/tests/notifications-test.cc
@@ -40,6 +40,9 @@ class NotificationsTest : public ::testing::Test
std::shared_ptr<NotificationsMock> notifications;
virtual void SetUp() {
+ g_setenv("GSETTINGS_SCHEMA_DIR", SCHEMA_DIR, TRUE);
+ g_setenv("GSETTINGS_BACKEND", "memory", TRUE);
+
service = dbus_test_service_new(NULL);
dbus_test_service_set_bus(service, DBUS_TEST_SERVICE_BUS_SESSION);