From 6cb18e9a371158977143c198d43e69c73895496d Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 2 Nov 2009 16:13:28 -0600 Subject: We want to not get the shutdown. Since we're testing that we get it without connection we can now assume that if we don't get it we should pass. --- tests/service-manager-connect-service.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/service-manager-connect-service.c') diff --git a/tests/service-manager-connect-service.c b/tests/service-manager-connect-service.c index 666739a..297f3ba 100644 --- a/tests/service-manager-connect-service.c +++ b/tests/service-manager-connect-service.c @@ -8,8 +8,8 @@ static gboolean passed = FALSE; gboolean timeout (gpointer data) { - passed = FALSE; - g_error("Timeout with no shutdown."); + passed = TRUE; + g_debug("Timeout with no shutdown."); g_main_loop_quit(mainloop); return FALSE; } @@ -17,8 +17,8 @@ timeout (gpointer data) void shutdown (void) { - g_debug("Shutdown"); - passed = TRUE; + g_error("Shutdown"); + passed = FALSE; g_main_loop_quit(mainloop); return; } @@ -28,7 +28,7 @@ main (int argc, char ** argv) { g_type_init(); - IndicatorService * is = indicator_service_new("my.test.name"); + IndicatorService * is = indicator_service_new("org.ayatana.test"); g_signal_connect(G_OBJECT(is), INDICATOR_SERVICE_SIGNAL_SHUTDOWN, shutdown, NULL); g_timeout_add_seconds(1, timeout, NULL); -- cgit v1.2.3