mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
gio: add gcredential support for macOS
[smcv: Apply my review feedback from <https://bugzilla.gnome.org/show_bug.cgi?id=668866>] Co-authored-by: Simon McVittie <smcv@collabora.com> Resolves: https://gitlab.gnome.org/GNOME/glib/issues/507
This commit is contained in:
committed by
Philip Withnall
parent
05cb229082
commit
ec2f60a008
@@ -99,6 +99,14 @@ test_basic (void)
|
||||
g_assert_cmpuint (native->uid, ==, geteuid ());
|
||||
g_assert_cmpuint (native->pid, ==, getpid ());
|
||||
}
|
||||
#elif G_CREDENTIALS_USE_APPLE_XUCRED
|
||||
{
|
||||
struct xucred *native = g_credentials_get_native (creds,
|
||||
G_CREDENTIALS_TYPE_APPLE_XUCRED);
|
||||
|
||||
g_assert_cmpuint (native->cr_version, ==, XUCRED_VERSION);
|
||||
g_assert_cmpuint (native->cr_uid, ==, geteuid ());
|
||||
}
|
||||
#elif G_CREDENTIALS_USE_FREEBSD_CMSGCRED
|
||||
{
|
||||
struct cmsgcred *native = g_credentials_get_native (creds,
|
||||
|
Reference in New Issue
Block a user