mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
gio: enable test_peer regression test for OpenBSD
https://bugzilla.gnome.org/show_bug.cgi?id=661255
This commit is contained in:
parent
3c4d3dec09
commit
c739a5df14
@ -795,6 +795,18 @@ test_peer (void)
|
||||
g_assert (native_creds->pid == getpid ());
|
||||
}
|
||||
g_object_unref (credentials);
|
||||
#elif defined (__OpenBSD__)
|
||||
{
|
||||
struct sockpeercred *native_creds;
|
||||
g_assert_no_error (error);
|
||||
g_assert (G_IS_CREDENTIALS (credentials));
|
||||
native_creds = g_credentials_get_native (credentials, G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED);
|
||||
g_assert (native_creds != NULL);
|
||||
g_assert (native_creds->uid == getuid ());
|
||||
g_assert (native_creds->gid == getgid ());
|
||||
g_assert (native_creds->pid == getpid ());
|
||||
}
|
||||
g_object_unref (credentials);
|
||||
#else
|
||||
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED);
|
||||
g_assert (credentials == NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user