g_free (runtime_services_dir);
g_free (runtime_dbus_dir);
g_free (runtime_dir);
+ dbus_shutdown ();
return ret;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
g_test_add ("/corrupt/tcp", Fixture, "tcp:host=127.0.0.1", setup,
test_byte_order, teardown);
#endif
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
g_test_add ("/eavedrop/match_keyword/broadcast", Fixture, NULL,
g_test_add ("/eavedrop/match_keyword/unicast_to_sender", Fixture, NULL,
setup, test_eavesdrop_unicast_to_sender, teardown);
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
g_test_add ("/echo/session", Fixture, NULL, setup, test_echo, teardown);
setup, test_fd_limit, teardown);
#endif
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
#ifdef HAVE_GETRLIMIT
g_test_add ("/odd-limit/plus2", Fixture, GINT_TO_POINTER (+2), setup,
test_odd_limit, teardown);
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
ret = g_test_run ();
g_queue_free_full (test_cases_to_free, g_free);
+ dbus_shutdown ();
return ret;
}
* This is how it can distinguish between an unexpected exit and
* successful completion. */
printf ("1..%d\n", test_num);
+ dbus_shutdown ();
return 0;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
g_test_add ("/refs/connection", Fixture, NULL, setup_connection,
g_test_add ("/refs/server", Fixture, NULL, setup,
test_server, teardown);
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
ret = g_test_run ();
g_queue_free_full (test_cases_to_free, g_free);
+ dbus_shutdown ();
return ret;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
g_test_add ("/syslog/normal", Fixture, NULL, setup, test_syslog_normal,
teardown);
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
g_test_add_func ("/variant/simple", test_simple);
g_test_add_func ("/variant/oom", test_oom_handling);
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
g_test_add ("/connect/tcp", Fixture, "tcp:host=127.0.0.1", setup,
test_bad_guid, teardown);
#endif
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
ret = g_test_run ();
g_free (aligned_le_blob);
g_free (aligned_be_blob);
+ dbus_shutdown ();
return ret;
}
ret = g_test_run ();
g_queue_free_full (test_cases_to_free, g_free);
+ dbus_shutdown ();
return ret;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
g_test_add ("/monitor/invalid", Fixture, NULL,
setup, test_activation, teardown);
#endif
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
g_test_add ("/connect/tcp", Fixture, "tcp:host=127.0.0.1", setup,
test_limit, teardown);
#endif
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
char **argv)
{
gsize i;
+ int ret;
test_init (&argc, &argv);
g_test_add ("/sd-activation/transient-services/in-advance", Fixture,
&transient_service_in_advance, setup, test_transient_services, teardown);
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
* successful completion. */
printf ("1..%d\n", test_num);
+ dbus_shutdown ();
return (num_failed != 0);
}
}
dbus_free(argv_copy);
-
+ dbus_shutdown ();
return 0;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
g_test_add ("/syntax/path", Fixture, &paths, setup, test_syntax, teardown);
g_test_add ("/syntax/utf8", Fixture, &strings,
setup, test_syntax, teardown);
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
#endif
_dbus_verbose ("*** Test service name exiting\n");
-
+ dbus_shutdown ();
return 0;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
g_test_add ("/thread-blocking", Fixture, NULL, setup, test_threads,
teardown);
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
/* UpdateActivationEnvironment used to be allowed by dbus-daemon for root
g_test_add ("/uid-permissions/monitor/other", Fixture, &other_fail_config,
setup, test_monitor, teardown);
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}