diff options
author | David Zeuthen <davidz@redhat.com> | 2010-09-23 19:16:25 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2010-09-23 19:16:25 -0400 |
commit | 4d9ae95ae05669f329381898c38e6a98ae7f0cd5 (patch) | |
tree | 3a0c4ec4fb2256f1fd343328d4a905d939a7c8e9 /gio/tests/gdbus-sessionbus.c | |
parent | a35eb7047116d0614d9d8dc9d1e435d45659d0d6 (diff) | |
download | glib-4d9ae95ae05669f329381898c38e6a98ae7f0cd5.tar.gz |
GDBus: Don't use abstract sockets in test code
It doesn't really work right now because of a dbus-daemon(1) bug - see
the comment added in the TODO section of gdbusconnection.c. So revert
to old behavior. The downside is a lot of files in /tmp but right now
that's better than not being able to run tests in a loop.
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'gio/tests/gdbus-sessionbus.c')
-rw-r--r-- | gio/tests/gdbus-sessionbus.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gio/tests/gdbus-sessionbus.c b/gio/tests/gdbus-sessionbus.c index 66b146c2b..e90bd1fe1 100644 --- a/gio/tests/gdbus-sessionbus.c +++ b/gio/tests/gdbus-sessionbus.c @@ -25,6 +25,7 @@ #include <unistd.h> #include <errno.h> #include <sys/types.h> +#include <sys/wait.h> #include <signal.h> #include <stdio.h> @@ -306,10 +307,7 @@ session_bus_get_temporary_address (void) { if (temporary_address == NULL) { - gchar *guid; - guid = g_dbus_generate_guid (); - temporary_address = g_strdup_printf ("unix:abstract=/tmp/g-dbus-tests-pid-%d-uuid-%s", getpid (), guid); - g_free (guid); + temporary_address = g_strdup_printf ("unix:path=/tmp/g-dbus-tests-pid-%d", getpid ()); } return temporary_address; |