From c1ab79e690652e6e1136154c2e5c70b3ff4e5d6b Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 10 Feb 2016 14:48:24 -0600 Subject: add a DBusMock test Fixture with helper functions to wait for arbitrary bus method calls --- tests/notification-fixture.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tests/notification-fixture.h b/tests/notification-fixture.h index b381b93..23329aa 100644 --- a/tests/notification-fixture.h +++ b/tests/notification-fixture.h @@ -306,20 +306,6 @@ protected: g_clear_object(&powerd_mock); g_clear_object(¬ify_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(); } -- cgit v1.2.3