From 21f2318408b8a179d547ccde45ab38fc5d4367ef Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 9 Feb 2015 22:54:58 -0600 Subject: Make sure to use the testing gsettings --- tests/notifications-test.cc | 3 +++ 1 file changed, 3 insertions(+) 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 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); -- cgit v1.2.3