diff options
author | Arthur Mello <arthur.mello@canonical.com> | 2016-07-01 16:46:40 -0300 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-07-08 02:09:57 +0200 |
commit | d425e3fadc1bca711c4dd3d5519fd831010ea4d6 (patch) | |
tree | 1c77a691e804520af68302fc291e7eeb0ade5542 /tests | |
parent | 559730101e171a821f9bb75c0e90cc9b19c60023 (diff) | |
download | ayatana-indicator-datetime-d425e3fadc1bca711c4dd3d5519fd831010ea4d6.tar.gz ayatana-indicator-datetime-d425e3fadc1bca711c4dd3d5519fd831010ea4d6.tar.bz2 ayatana-indicator-datetime-d425e3fadc1bca711c4dd3d5519fd831010ea4d6.zip |
Remove gsettings source call during unit tests Set minimal version for gsettings-ubuntu-touch-schemas package
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-settings.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
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<LiveSettings> m_live; std::shared_ptr<Settings> 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<Settings>(m_live); |