projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b97d666
)
gio/tests/socket.c: fix on OS X
author
Dan Winship
<danw@gnome.org>
Sun, 21 Jun 2015 16:10:06 +0000
(12:10 -0400)
committer
Dan Winship
<danw@gnome.org>
Mon, 29 Jun 2015 18:40:56 +0000
(14:40 -0400)
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
gio/tests/socket.c
patch
|
blob
|
history
diff --git
a/gio/tests/socket.c
b/gio/tests/socket.c
index
cb2cda2
..
3d8e642
100644
(file)
--- a/
gio/tests/socket.c
+++ b/
gio/tests/socket.c
@@
-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);