summaryrefslogtreecommitdiff
path: root/tests/at-spi2-atk/test-application.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/at-spi2-atk/test-application.c')
-rw-r--r--tests/at-spi2-atk/test-application.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/at-spi2-atk/test-application.c b/tests/at-spi2-atk/test-application.c
index e28926b0..b8a8da01 100644
--- a/tests/at-spi2-atk/test-application.c
+++ b/tests/at-spi2-atk/test-application.c
@@ -100,6 +100,7 @@ static gboolean
sigterm_received_cb (gpointer user_data)
{
GMainLoop *mainloop = user_data;
+ g_print ("test application received SIGTERM\n");
g_main_loop_quit (mainloop);
return G_SOURCE_REMOVE;
}
@@ -118,11 +119,17 @@ main (int argc, char *argv[])
setup_atk_util ();
test_init (tdata_path);
- atk_bridge_adaptor_init (NULL, NULL);
+
+ atk_bridge_adaptor_init (&argc, &argv);
mainloop = g_main_loop_new (NULL, FALSE);
g_unix_signal_add (SIGTERM, sigterm_received_cb, mainloop);
g_main_loop_run (mainloop);
+ g_print ("test application exited main loop; terminating after cleanup\n");
+
+ atk_bridge_adaptor_cleanup ();
+
+ g_print ("test application %d exiting!\n", getpid ());
return 0;
}