mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-31 15:50:13 +01:00
bus-test: only expect GetConnectionUnixProcessID to succeed sometimes
On platforms that use getpeereid(), this can't work. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=60340 Reviewed-by: Colin Walters <walters@verbum.org>
This commit is contained in:
parent
1da53c6d4a
commit
5ecbe018a0
1 changed files with 6 additions and 0 deletions
|
|
@ -1307,9 +1307,15 @@ check_get_connection_unix_process_id (BusContext *context,
|
|||
#endif
|
||||
else
|
||||
{
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
|
||||
defined(__linux__) || \
|
||||
defined(__OpenBSD__)
|
||||
warn_unexpected (connection, message, "not this error");
|
||||
|
||||
goto out;
|
||||
#else
|
||||
_dbus_verbose ("does not support GetConnectionUnixProcessID but perhaps that's OK?\n");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue