From dd79fc73f08574698c18c6a35dc309d5ef33fde0 Mon Sep 17 00:00:00 2001 From: Mikael Hallendal Date: Fri, 12 Mar 2004 14:07:16 +0000 Subject: 2004-03-12 Mikael Hallendal * bus/activation.c: - Added service file reloading. Each service files directory is kept in an hash table in BusActivation and each BusActivationEntry knows what .service-file it was read from. So when you try to activate a service the bus will check if it's been updated, removed or if new .service-files has been installed. - Test code at the bottom for the service file reloading. * bus/test-main.c: (main): * bus/test.h: - added service reloading test. * dbus/dbus-sysdeps.c: * dbus/dbus-sysdeps.h: (_dbus_delete_directory): Added. --- bus/test-main.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'bus/test-main.c') diff --git a/bus/test-main.c b/bus/test-main.c index b4e84884..1626f2d7 100644 --- a/bus/test-main.c +++ b/bus/test-main.c @@ -76,7 +76,7 @@ main (int argc, char **argv) if (!_dbus_threads_init_debug ()) die ("initializing debug threads"); #endif - + printf ("%s: Running expire list test\n", argv[0]); if (!bus_expire_list_test (&test_data_dir)) die ("expire list"); @@ -106,12 +106,17 @@ main (int argc, char **argv) die ("sha1"); check_memleaks (argv[0]); - printf ("%s: Running message dispatch test\n", argv[0]); - if (!bus_dispatch_test (&test_data_dir)) + if (!bus_dispatch_test (&test_data_dir)) die ("dispatch"); check_memleaks (argv[0]); + + printf ("%s: Running service files reloading test\n", argv[0]); + if (!bus_activation_service_reload_test (&test_data_dir)) + die ("service reload"); + + check_memleaks (argv[0]); printf ("%s: Success\n", argv[0]); -- cgit