aboutsummaryrefslogtreecommitdiff
path: root/tests/test-notify.cc
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-28 21:46:20 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-28 21:46:20 +0100
commitfb42e141a8335ed8b415f860c80c7cdbdf76410c (patch)
treef4c4cf040c253270d76bbc6991df5b24d40abf6a /tests/test-notify.cc
parent8e990c91411ce1fe798eb16019e2543b40fc828b (diff)
parent0a4e2ee68299b15e43651e265ead1cf6d1d5e419 (diff)
downloadayatana-indicator-power-fb42e141a8335ed8b415f860c80c7cdbdf76410c.tar.gz
ayatana-indicator-power-fb42e141a8335ed8b415f860c80c7cdbdf76410c.tar.bz2
ayatana-indicator-power-fb42e141a8335ed8b415f860c80c7cdbdf76410c.zip
Merge branch 'tari01-pr/get-sounds-path-from-lomniri-sounds'
Attributes GH PR #59: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/59
Diffstat (limited to 'tests/test-notify.cc')
-rw-r--r--tests/test-notify.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test-notify.cc b/tests/test-notify.cc
index 0732ece..815b5d7 100644
--- a/tests/test-notify.cc
+++ b/tests/test-notify.cc
@@ -1,6 +1,6 @@
/*
* Copyright 2014-2016 Canonical Ltd.
- * Copyright 2021 Robert Tari
+ * Copyright 2021-2022 Robert Tari
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
@@ -19,6 +19,9 @@
* Robert Tari <robert@tari.in>
*/
+#ifndef LOMIRI_SOUNDSDIR
+ #define LOMIRI_SOUNDSDIR ""
+#endif
#include "glib-fixture.h"
@@ -391,7 +394,7 @@ TEST_F(NotifyFixture, EventsThatChangeNotifications)
TRUE);
// the file we expect to play on a low battery notification...
- const char* expected_file = "/usr/share/sounds/lomiri/notifications/" LOW_BATTERY_SOUND;
+ const char* expected_file = LOMIRI_SOUNDSDIR "/notifications/" LOW_BATTERY_SOUND;
char* tmp = g_filename_to_uri(expected_file, nullptr, nullptr);
const std::string low_power_uri {tmp};
g_clear_pointer(&tmp, g_free);