From d425e3fadc1bca711c4dd3d5519fd831010ea4d6 Mon Sep 17 00:00:00 2001 From: Arthur Mello Date: Fri, 1 Jul 2016 16:46:40 -0300 Subject: Remove gsettings source call during unit tests Set minimal version for gsettings-ubuntu-touch-schemas package --- tests/test-settings.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/test-settings.cpp b/tests/test-settings.cpp index 55a88b7..b9658f4 100644 --- a/tests/test-settings.cpp +++ b/tests/test-settings.cpp @@ -42,19 +42,15 @@ protected: std::shared_ptr m_live; std::shared_ptr m_settings; - GSettings * m_gsettings; - GSettings * m_gsettings_cal_notification; - GSettingsSchemaSource *source = g_settings_schema_source_get_default(); + GSettings * m_gsettings {}; + GSettings * m_gsettings_cal_notification {}; void SetUp() override { super::SetUp(); m_gsettings = g_settings_new(SETTINGS_INTERFACE); - - if (g_settings_schema_source_lookup(source, SETTINGS_NOTIFY_SCHEMA_ID, true)) { - m_gsettings_cal_notification = g_settings_new_with_path(SETTINGS_NOTIFY_SCHEMA_ID, SETTINGS_NOTIFY_CALENDAR_PATH); - } + m_gsettings_cal_notification = g_settings_new_with_path(SETTINGS_NOTIFY_SCHEMA_ID, SETTINGS_NOTIFY_CALENDAR_PATH); m_live.reset(new LiveSettings); m_settings = std::dynamic_pointer_cast(m_live); -- cgit v1.2.3