projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d8b1b1
)
GTestDBus: Allow to specify the dbus-daemon binary
author
Alexander Larsson
<alexl@redhat.com>
Thu, 19 Apr 2012 09:01:24 +0000
(11:01 +0200)
committer
Alexander Larsson
<alexl@redhat.com>
Fri, 20 Apr 2012 13:02:48 +0000
(15:02 +0200)
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
patch
|
blob
|
history
diff --git
a/gio/gtestdbus.c
b/gio/gtestdbus.c
index
f79aade
..
99f855b
100644
(file)
--- 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);