aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-08-24 00:27:52 +0200
committerRobert Tari <robert@tari.in>2021-08-30 01:41:55 +0200
commit6f2c0c89a36ce29d99926c8f1ce1e28a01daa6dc (patch)
tree18b93e54698d2b2af15abc1364fb36a3fc4ba031 /tests
parent544cee5c87bb063e60bd8536ecd8e4b165b43aa4 (diff)
downloadayatana-indicator-datetime-6f2c0c89a36ce29d99926c8f1ce1e28a01daa6dc.tar.gz
ayatana-indicator-datetime-6f2c0c89a36ce29d99926c8f1ce1e28a01daa6dc.tar.bz2
ayatana-indicator-datetime-6f2c0c89a36ce29d99926c8f1ce1e28a01daa6dc.zip
Replace deprecated pre-processor symbols
Diffstat (limited to 'tests')
-rw-r--r--tests/notification-fixture.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/notification-fixture.h b/tests/notification-fixture.h
index cbce9ff..ec4a8c5 100644
--- a/tests/notification-fixture.h
+++ b/tests/notification-fixture.h
@@ -308,6 +308,20 @@ protected:
g_clear_object(&powerd_mock);
g_clear_object(&notify_mock);
g_clear_object(&as_mock);
+ g_clear_object(&service);
+ g_object_unref(session_bus);
+ g_object_unref(system_bus);
+
+ // wait a little while for the scaffolding to shut down,
+ // but don't block on it forever...
+ unsigned int cleartry = 0;
+ while (((system_bus != nullptr) || (session_bus != nullptr)) && (cleartry < 50))
+ {
+ g_usleep(100000);
+ while (g_main_context_pending(nullptr))
+ g_main_context_iteration(nullptr, true);
+ cleartry++;
+ }
super::TearDown();
}