diff options
author | Mikael Hallendal <micke@imendio.com> | 2004-03-12 14:07:16 +0000 |
---|---|---|
committer | Mikael Hallendal <micke@imendio.com> | 2004-03-12 14:07:16 +0000 |
commit | dd79fc73f08574698c18c6a35dc309d5ef33fde0 (patch) | |
tree | 31c211a1dfe5b463cf3c63ddfab838f8ce3538f1 /bus/test-main.c | |
parent | 387510da641d1b91cd5369e292e6203e376da1a2 (diff) | |
download | dbus-dd79fc73f08574698c18c6a35dc309d5ef33fde0.tar.gz |
2004-03-12 Mikael Hallendal <micke@imendio.com>
* 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.
Diffstat (limited to 'bus/test-main.c')
-rw-r--r-- | bus/test-main.c | 11 |
1 files changed, 8 insertions, 3 deletions
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]); |