aboutsummaryrefslogtreecommitdiff
path: root/tests/service-manager-connect-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/service-manager-connect-service.c')
-rw-r--r--tests/service-manager-connect-service.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/service-manager-connect-service.c b/tests/service-manager-connect-service.c
index 297f3ba..d60e414 100644
--- a/tests/service-manager-connect-service.c
+++ b/tests/service-manager-connect-service.c
@@ -8,7 +8,7 @@ static gboolean passed = FALSE;
gboolean
timeout (gpointer data)
{
- passed = TRUE;
+ passed = FALSE;
g_debug("Timeout with no shutdown.");
g_main_loop_quit(mainloop);
return FALSE;
@@ -17,8 +17,8 @@ timeout (gpointer data)
void
shutdown (void)
{
- g_error("Shutdown");
- passed = FALSE;
+ g_debug("Shutdown");
+ passed = TRUE;
g_main_loop_quit(mainloop);
return;
}
@@ -28,6 +28,8 @@ main (int argc, char ** argv)
{
g_type_init();
+ g_debug("Starting service");
+
IndicatorService * is = indicator_service_new("org.ayatana.test");
g_signal_connect(G_OBJECT(is), INDICATOR_SERVICE_SIGNAL_SHUTDOWN, shutdown, NULL);