mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-30 12:23:06 +02:00
gio/tests/socket.c: fix on OS X
The semantics of calling shutdown() on a dup()ed socket aren't well-specified, so don't require any specific behavior. https://bugzilla.gnome.org/show_bug.cgi?id=747676
This commit is contained in:
parent
b97d666b2f
commit
b25fa8feed
@ -1005,8 +1005,10 @@ test_fd_reuse (void)
|
||||
|
||||
g_socket_shutdown (client, FALSE, TRUE, &error);
|
||||
g_assert_no_error (error);
|
||||
g_socket_shutdown (client2, FALSE, TRUE, &error);
|
||||
g_assert_no_error (error);
|
||||
/* The semantics of dup()+shutdown() are ambiguous; this call will succeed
|
||||
* on Linux, but return ENOTCONN on OS X.
|
||||
*/
|
||||
g_socket_shutdown (client2, FALSE, TRUE, NULL);
|
||||
|
||||
g_thread_join (data->thread);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user