summaryrefslogtreecommitdiffstats
path: root/bus/test.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-04-07 23:28:16 +0000
committerHavoc Pennington <hp@redhat.com>2003-04-07 23:28:16 +0000
commitfe22b2194d53061fefe64d48ff6a53e6a762279d (patch)
tree590e2096930716d80fb2ba1ebfce10c10e08efda /bus/test.c
parent1617fbe36c0bc2952093fc167b6edffdf32c445e (diff)
2003-04-07 Havoc Pennington <hp@redhat.com>
* doc/dbus-specification.sgml: require that base service names start with ':' and that the base service is created/deleted as first and last things a connection does on the bus * bus/dispatch.c (check_existent_service_activation): lots more work on the activation test; it doesn't fully pass yet... * test/test-service.c (main): fix so we don't memleak the connection to the message bus (filter_func): accept a message asking us to exit
Diffstat (limited to 'bus/test.c')
-rw-r--r--bus/test.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bus/test.c b/bus/test.c
index 31c279f9..ded23ba8 100644
--- a/bus/test.c
+++ b/bus/test.c
@@ -297,13 +297,13 @@ bus_test_client_listed (DBusConnection *connection)
}
void
-bus_test_run_clients_loop (void)
+bus_test_run_clients_loop (dbus_bool_t block_once)
{
if (client_loop == NULL)
return;
/* Do one blocking wait, since we're expecting data */
- _dbus_loop_iterate (client_loop, TRUE);
+ _dbus_loop_iterate (client_loop, block_once);
/* Then mop everything up */
while (_dbus_loop_iterate (client_loop, FALSE))
@@ -311,10 +311,11 @@ bus_test_run_clients_loop (void)
}
void
-bus_test_run_bus_loop (BusContext *context)
+bus_test_run_bus_loop (BusContext *context,
+ dbus_bool_t block_once)
{
/* Do one blocking wait, since we're expecting data */
- _dbus_loop_iterate (bus_context_get_loop (context), TRUE);
+ _dbus_loop_iterate (bus_context_get_loop (context), block_once);
/* Then mop everything up */
while (_dbus_loop_iterate (bus_context_get_loop (context), FALSE))