[glib] GTestDBus: Allow to specify the dbus-daemon binary
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GTestDBus: Allow to specify the dbus-daemon binary
- Date: Fri, 20 Apr 2012 13:04:34 +0000 (UTC)
commit 74214e2997e51fd96842aac2eee049e6b81a4595
Author: Alexander Larsson <alexl redhat com>
Date: Thu Apr 19 11:01:24 2012 +0200
GTestDBus: Allow to specify the dbus-daemon binary
The env var G_TEST_DBUS_DAEMON lets you change dbus-daemon to
whatever you want. This is useful to test with gdbus-daemon
gio/gtestdbus.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gio/gtestdbus.c b/gio/gtestdbus.c
index f79aade..99f855b 100644
--- a/gio/gtestdbus.c
+++ b/gio/gtestdbus.c
@@ -514,6 +514,9 @@ start_daemon (GTestDBus *self)
gsize termpos;
GError *error = NULL;
+ if (g_getenv ("G_TEST_DBUS_DAEMON") != NULL)
+ argv[0] = g_getenv ("G_TEST_DBUS_DAEMON");
+
/* Write config file and set its path in argv */
file = write_config_file (self);
config_path = g_file_get_path (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]