aboutsummaryrefslogtreecommitdiff
path: root/tests/notifications-test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/notifications-test.cc')
-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);