From e0d35fcfc64134af45aa4da81e6a8e9cd2007d16 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 22 Oct 2009 11:30:41 -0500 Subject: Adding a kill function, just in case. --- tests/test-libcustomindicator-dbus-client.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') diff --git a/tests/test-libcustomindicator-dbus-client.c b/tests/test-libcustomindicator-dbus-client.c index 8e49059..c6c31f0 100644 --- a/tests/test-libcustomindicator-dbus-client.c +++ b/tests/test-libcustomindicator-dbus-client.c @@ -77,6 +77,15 @@ prop_menu_cb (DBusGProxy * proxy, DBusGProxyCall * call, void * data) return; } +gboolean +kill_func (gpointer userdata) +{ + g_main_loop_quit(mainloop); + g_warning("Forced to Kill"); + passed = FALSE; + return FALSE; +} + gint main (gint argc, gchar * argv[]) { @@ -144,6 +153,8 @@ main (gint argc, gchar * argv[]) G_TYPE_STRING, "Menu", G_TYPE_INVALID); + g_timeout_add_seconds(2, kill_func, NULL); + mainloop = g_main_loop_new(NULL, FALSE); g_main_loop_run(mainloop); -- cgit v1.2.3