aboutsummaryrefslogtreecommitdiff
path: root/tests/test-libcustomindicator-dbus-client.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-22 11:30:41 -0500
committerTed Gould <ted@canonical.com>2009-10-22 11:30:41 -0500
commite0d35fcfc64134af45aa4da81e6a8e9cd2007d16 (patch)
treef8433326b6eea7415ba22cb58382e5e1c7aa56ea /tests/test-libcustomindicator-dbus-client.c
parenta8b100939f7473874d858683229c2021b8ce6be6 (diff)
downloadayatana-indicator-application-e0d35fcfc64134af45aa4da81e6a8e9cd2007d16.tar.gz
ayatana-indicator-application-e0d35fcfc64134af45aa4da81e6a8e9cd2007d16.tar.bz2
ayatana-indicator-application-e0d35fcfc64134af45aa4da81e6a8e9cd2007d16.zip
Adding a kill function, just in case.
Diffstat (limited to 'tests/test-libcustomindicator-dbus-client.c')
-rw-r--r--tests/test-libcustomindicator-dbus-client.c11
1 files changed, 11 insertions, 0 deletions
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);