mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user