From 92658ca183935e2691acfe84be1464b0b9d43259 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 9 Feb 2015 17:04:12 -0600 Subject: Initialize notify, which is normally done in the main --- tests/notifications-test.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/notifications-test.cc') diff --git a/tests/notifications-test.cc b/tests/notifications-test.cc index 1b231eb..c2680ab 100644 --- a/tests/notifications-test.cc +++ b/tests/notifications-test.cc @@ -22,6 +22,7 @@ #include #include #include +#include #include "notifications-mock.h" @@ -51,9 +52,15 @@ class NotificationsTest : public ::testing::Test ASSERT_NE(nullptr, session); g_dbus_connection_set_exit_on_close(session, FALSE); g_object_add_weak_pointer(G_OBJECT(session), (gpointer *)&session); + + /* This is done in main.c */ + notify_init("indicator-sound"); } virtual void TearDown() { + if (notify_is_initted()) + notify_uninit(); + notifications.reset(); g_clear_object(&service); -- cgit v1.2.3