diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/service-manager-connect-service.c | 6 | ||||
-rw-r--r-- | tests/service-manager-connect.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/service-manager-connect-service.c b/tests/service-manager-connect-service.c index 297f3ba..dbdf4fa 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; } diff --git a/tests/service-manager-connect.c b/tests/service-manager-connect.c index c252542..b62c2c9 100644 --- a/tests/service-manager-connect.c +++ b/tests/service-manager-connect.c @@ -37,6 +37,8 @@ main (int argc, char ** argv) mainloop = g_main_loop_new(NULL, FALSE); g_main_loop_run(mainloop); + g_object_unref(is); + g_debug("Quiting"); if (passed) { g_debug("Passed"); |