summaryrefslogtreecommitdiff
path: root/src/3rd_party/dbus-1.7.8/test/spawn-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rd_party/dbus-1.7.8/test/spawn-test.c')
-rw-r--r--src/3rd_party/dbus-1.7.8/test/spawn-test.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/3rd_party/dbus-1.7.8/test/spawn-test.c b/src/3rd_party/dbus-1.7.8/test/spawn-test.c
deleted file mode 100644
index 723a4889af..0000000000
--- a/src/3rd_party/dbus-1.7.8/test/spawn-test.c
+++ /dev/null
@@ -1,42 +0,0 @@
-#include <config.h>
-#include <dbus/dbus.h>
-
-#include <dbus/dbus-sysdeps.h>
-#include <dbus/dbus-spawn.h>
-#include <stdio.h>
-
-static void
-setup_func (void *data)
-{
- printf ("entering setup func.\n");
-}
-
-int
-main (int argc, char **argv)
-{
- char **argv_copy;
- int i;
- DBusError error;
-
- if (argc < 2)
- {
- fprintf (stderr, "You need to specify a program to launch.\n");
-
- return -1;
- }
-
- argv_copy = dbus_new (char *, argc);
- for (i = 0; i < argc - 1; i++)
- argv_copy [i] = argv[i + 1];
- argv_copy[argc - 1] = NULL;
-
- if (!_dbus_spawn_async_with_babysitter (NULL, argv_copy[0], argv_copy, NULL, setup_func, NULL, &error))
- {
- fprintf (stderr, "Could not launch application: \"%s\"\n",
- error.message);
- }
-
- dbus_free(argv_copy);
-
- return 0;
-}