From d0abe1ebd34409a7074a39c6af017b2cfb49abf4 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 12 Jan 2010 16:36:26 -0600 Subject: Printing status in watcher --- tests/test-libappindicator-fallback-watcher.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test-libappindicator-fallback-watcher.c b/tests/test-libappindicator-fallback-watcher.c index 07d8da6..90c7db8 100644 --- a/tests/test-libappindicator-fallback-watcher.c +++ b/tests/test-libappindicator-fallback-watcher.c @@ -54,9 +54,13 @@ main (int argv, char ** argc) { g_type_init(); + g_debug("Waiting to init."); + /* Wait 1/4 a second, which should trigger the fallback */ g_usleep(250000); + g_debug("Initing"); + GError * error = NULL; DBusGConnection * session_bus = dbus_g_bus_get(DBUS_BUS_SESSION, &error); if (error != NULL) { @@ -82,8 +86,12 @@ main (int argv, char ** argc) /* After we've got the name, let it unfallback, and then we'll drop again */ g_timeout_add(250, kill_func, NULL); + g_debug("Entering Mainloop"); + mainloop = g_main_loop_new(NULL, FALSE); g_main_loop_run(mainloop); + g_debug("Exiting"); + return 0; } -- cgit v1.2.3