diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-28 10:17:41 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-28 10:17:41 +0200 |
commit | 046a91ec739efdf1504e8716a28cec2fd5782303 (patch) | |
tree | 5e2c48a3dcd5992e4c190609484706a69d3393f8 /tests/test-device.cc | |
parent | 92ac2554299affa7980dd754dfa5745ce1571bdd (diff) | |
parent | d5a53027e58b6153b86b6c4b832cfd393bcdefb0 (diff) | |
download | ayatana-indicator-power-046a91ec739efdf1504e8716a28cec2fd5782303.tar.gz ayatana-indicator-power-046a91ec739efdf1504e8716a28cec2fd5782303.tar.bz2 ayatana-indicator-power-046a91ec739efdf1504e8716a28cec2fd5782303.zip |
Merge branch 'tari01-pr/ubports-patches'
Attributes GH PR #33: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/33
Diffstat (limited to 'tests/test-device.cc')
-rw-r--r-- | tests/test-device.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-device.cc b/tests/test-device.cc index bdc29d1..a948857 100644 --- a/tests/test-device.cc +++ b/tests/test-device.cc @@ -53,7 +53,7 @@ class DeviceTest : public ::testing::Test virtual void SetUp() { const GLogLevelFlags flags = GLogLevelFlags(G_LOG_LEVEL_CRITICAL|G_LOG_LEVEL_WARNING); - log_handler_id = g_log_set_handler ("ayatana-indicator-power", flags, log_count_func, this); + log_handler_id = g_log_set_handler(G_LOG_DOMAIN, flags, log_count_func, this); log_count_ipower_expected = 0; log_count_ipower_actual = 0; } @@ -61,7 +61,7 @@ class DeviceTest : public ::testing::Test virtual void TearDown() { ASSERT_EQ (log_count_ipower_expected, log_count_ipower_actual); - g_log_remove_handler ("ayatana-indicator-power", log_handler_id); + g_log_remove_handler (G_LOG_DOMAIN, log_handler_id); } protected: |