Commit fc2fa25a authored by Simon McVittie's avatar Simon McVittie
Browse files

dbus-daemon test: don't assert we pass uid/pid on unknown Unix platforms

We know that Linux, FreeBSD and OpenBSD are "first class citizens"
for credentials-passing, with NetBSD not far behind: people have
turned up on the bug tracking system and told us that tests passed.
On other Unixes, we can't really assert that it works, until someone
who runs them tells us that it worked for them.

Additions to these lists are welcome.


Reviewed-by: default avatarPatrick Welche <>
Reviewed-by: default avatarAlban Crequy <>
Tested-by: default avatarPatrick Welche <>
parent aebc2474
......@@ -43,6 +43,30 @@
#include "test-utils.h"
/* Platforms where we know that credentials-passing passes both the
* uid and the pid. Please keep these in alphabetical order.
* These platforms should #error in _dbus_read_credentials_socket()
* if we didn't detect their flavour of credentials-passing, since that
* would be a regression.
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || \
defined(__linux__) || \
/* Platforms where we know that credentials-passing passes the
* uid, but not necessarily the pid. Again, alphabetical order please.
* These platforms should also #error in _dbus_read_credentials_socket()
* if we didn't detect their flavour of credentials-passing.
#if defined(__NetBSD__)
typedef struct {
gboolean skip;
......@@ -528,8 +552,11 @@ test_creds (Fixture *f,
dbus_message_iter_next (&arr_iter);
#ifdef G_OS_UNIX
g_assert (seen & SEEN_UNIX_USER);
g_assert (seen & SEEN_PID);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment