aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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);