From fdd18c9d53ca50b435c5965f748b2c32a745e8a7 Mon Sep 17 00:00:00 2001 From: Nicholas Guriev Date: Sat, 24 Apr 2021 23:10:17 +0300 Subject: Various tests fixes * Provide default EdsEngine constructor for autotests. * Temporary disable DST related tests. Something strange happens there. * Do not create locale datetime for more reliable result on non-UTC systems. * Specify audio_url for sample Alarms. Fixes AyatanaIndicators/ayatana-indicator-datetime#32 --- src/engine-eds.cpp | 5 +++++ src/main.cpp | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/engine-eds.cpp b/src/engine-eds.cpp index 277c090..709bb4d 100644 --- a/src/engine-eds.cpp +++ b/src/engine-eds.cpp @@ -1245,6 +1245,11 @@ private: **** ***/ +EdsEngine::EdsEngine(): + p(new Impl(std::shared_ptr(new Myself))) +{ +} + EdsEngine::EdsEngine(const std::shared_ptr &myself): p(new Impl(myself)) { diff --git a/src/main.cpp b/src/main.cpp index 0da55a2..fdd84b5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -61,7 +60,7 @@ namespace if (!g_strcmp0("lightdm", g_get_user_name())) engine.reset(new MockEngine); else - engine.reset(new EdsEngine(std::shared_ptr(new Myself))); + engine.reset(new EdsEngine); return engine; } -- cgit v1.2.3