From 5ecbe018a07dfd5b1cce5eb0e431f7a5984517c7 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 13 Sep 2013 19:18:10 +0100 Subject: [PATCH] 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 --- bus/dispatch.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bus/dispatch.c b/bus/dispatch.c index 35a4b72be..5fc0d112e 100644 --- a/bus/dispatch.c +++ b/bus/dispatch.c @@ -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 -- 2.47.3