aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Mello <arthur.mello@canonical.com>2016-07-01 16:46:40 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commit643fe6c97bac749933671f8db95f97bcf7349e74 (patch)
tree95d804955680baec88aa146cbc6a520710da694f
parent8b5aee0a3ab3724481b8692faebe48d150c23e1b (diff)
downloadayatana-indicator-datetime-643fe6c97bac749933671f8db95f97bcf7349e74.tar.gz
ayatana-indicator-datetime-643fe6c97bac749933671f8db95f97bcf7349e74.tar.bz2
ayatana-indicator-datetime-643fe6c97bac749933671f8db95f97bcf7349e74.zip
Remove gsettings source call during unit tests Set minimal version for gsettings-ubuntu-touch-schemas package
-rw-r--r--tests/test-settings.cpp10
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);