aboutsummaryrefslogtreecommitdiff
path: root/tests/service-manager-connect-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-02 15:58:52 -0600
committerTed Gould <ted@gould.cx>2009-12-02 15:58:52 -0600
commitbc803c5df180ab73e129060c64982a637ae6048d (patch)
tree9ed4a914ab7db514e7be23ebab23524695327ddb /tests/service-manager-connect-service.c
parent1696a679089c71f23557ad8c3ec4d1da2d9f6b73 (diff)
parentde38fc85d228bb2de6de86f31805ad0de748318e (diff)
downloadlibayatana-indicator-bc803c5df180ab73e129060c64982a637ae6048d.tar.gz
libayatana-indicator-bc803c5df180ab73e129060c64982a637ae6048d.tar.bz2
libayatana-indicator-bc803c5df180ab73e129060c64982a637ae6048d.zip
Merge in from trunk, now two failing tests.
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);