gsocket: add a testcase that shows a hang on win32
authorPaolo Borelli <pborelli@gnome.org>
Sat, 10 Jan 2015 14:23:07 +0000 (15:23 +0100)
committerPaolo Borelli <pborelli@gnome.org>
Sat, 17 Jan 2015 14:04:25 +0000 (15:04 +0100)
commit4f4714285dcc5c3ce9c87f65d9f684f285113a6e
treea2f077a2619118c729a047ffe32850279e720b40
parent2c5076cd58d27eca46aa32ea44ec54cefb96499e
gsocket: add a testcase that shows a hang on win32

Add a unit test that checks g_socket_new_from_fd by creating
a gsocket, obtaining its fd, duplicating the fd and then creating
a gsocket from the new fd. This shows a hang on win32 since the
gsocket created from the fd never receives the FD_WRITE event
because we wait for the condition without first trying to write
and windows signals the condition only after a EWOULDBLOCK error.

https://bugzilla.gnome.org/show_bug.cgi?id=741707
gio/tests/socket.c