aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-11-02 16:13:28 -0600
committerTed Gould <ted@canonical.com>2009-11-02 16:13:28 -0600
commit6cb18e9a371158977143c198d43e69c73895496d (patch)
tree97f557f3a1010413a0866514eb5be5fe2acb1877 /tests
parentddb2ab7cba0d8b2c7ea5171595e06c04520f4b81 (diff)
downloadlibayatana-indicator-6cb18e9a371158977143c198d43e69c73895496d.tar.gz
libayatana-indicator-6cb18e9a371158977143c198d43e69c73895496d.tar.bz2
libayatana-indicator-6cb18e9a371158977143c198d43e69c73895496d.zip
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/service-manager-connect-service.c10
1 files changed, 5 insertions, 5 deletions
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);