From af70cff9cef989be42968b11d356e8da09635c4d Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 12 Feb 2015 09:12:56 -0600 Subject: Adding a bustle block for fun --- tests/notifications-test.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests') diff --git a/tests/notifications-test.cc b/tests/notifications-test.cc index 3b54a95..3da41cd 100644 --- a/tests/notifications-test.cc +++ b/tests/notifications-test.cc @@ -46,6 +46,19 @@ class NotificationsTest : public ::testing::Test service = dbus_test_service_new(NULL); dbus_test_service_set_bus(service, DBUS_TEST_SERVICE_BUS_SESSION); + /* Useful for debugging test failures, not needed all the time (until it fails) */ + #if 0 + auto bustle = std::shared_ptr([]() { + DbusTestTask * bustle = DBUS_TEST_TASK(dbus_test_bustle_new("notifications-test.bustle")); + dbus_test_task_set_name(bustle, "Bustle"); + dbus_test_task_set_bus(bustle, DBUS_TEST_SERVICE_BUS_SESSION); + return bustle; + }(), [](DbusTestTask * bustle) { + g_clear_object(&bustle); + }); + dbus_test_service_add_task(service, bustle.get()); + #endif + notifications = std::make_shared(); dbus_test_service_add_task(service, (DbusTestTask*)*notifications); -- cgit v1.2.3