summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2003-02-17 09:59:23 +0000
committerAnders Carlsson <andersca@codefactory.se>2003-02-17 09:59:23 +0000
commit3c8db267892bbce5c82d5060cef993dd54dc6ed4 (patch)
tree9560edcebc5bf79b4550611a67505b7677543418 /test
parent8faf99b118daf0040a58981cdf24a344ff2578ca (diff)
2003-02-17 Anders Carlsson <andersca@codefactory.se>
* bus/activation.c: (bus_activation_init), (child_setup), (bus_activation_activate_service): * bus/activation.h: * bus/main.c: (main): Set DBUS_ADDRESS environment variable. * dbus/dbus-errors.c: (dbus_set_error): Don't use va_copy since that's a C99 feature. * dbus/dbus-sysdeps.c: (_dbus_setenv), (do_exec), (_dbus_spawn_async): * dbus/dbus-sysdeps.h: Add child_setup_func to _dbus_spawn_async. * doc/dbus-specification.sgml: Update specification. * test/spawn-test.c: (setup_func), (main): Fix test.
Diffstat (limited to 'test')
-rw-r--r--test/spawn-test.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/spawn-test.c b/test/spawn-test.c
index fda0309b..18462eba 100644
--- a/test/spawn-test.c
+++ b/test/spawn-test.c
@@ -5,6 +5,12 @@
#undef DBUS_COMPILATION
#include <stdio.h>
+static void
+setup_func (void *data)
+{
+ printf ("entering setup func.\n");
+}
+
int
main (int argc, char **argv)
{
@@ -24,7 +30,7 @@ main (int argc, char **argv)
argv_copy [i] = argv[i + 1];
argv_copy[argc - 1] = NULL;
- if (!_dbus_spawn_async (argv_copy, &error))
+ if (!_dbus_spawn_async (argv_copy, setup_func, NULL, &error))
{
fprintf (stderr, "Could not launch application: \"%s\"\n",
error.message);