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:
Simon McVittie 2013-09-13 19:18:10 +01:00
parent 1da53c6d4a
commit 5ecbe018a0

View file

@ -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