summaryrefslogtreecommitdiff
path: root/tests/tcp.c
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2013-03-29 20:08:11 +0100
committerMartin Sustrik <sustrik@250bpm.com>2013-03-29 20:08:11 +0100
commitbb07141573fd3c929ef737a8e2af6cfceffdcf79 (patch)
treeca80b3e49cf8f014a93afcd3f36db97fe4eabd1c /tests/tcp.c
parent273864bedcf01b21ad9de30eb58e7ce029dd0478 (diff)
downloadnanomsg-bb07141573fd3c929ef737a8e2af6cfceffdcf79.tar.gz
New test added to tests/tcp.c
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'tests/tcp.c')
-rw-r--r--tests/tcp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/tcp.c b/tests/tcp.c
index 0ff6348..f35d993 100644
--- a/tests/tcp.c
+++ b/tests/tcp.c
@@ -40,6 +40,16 @@ int main ()
int i;
char buf [3];
+ /* Try closing bound but unconnected socket. */
+#if 0
+ sb = nn_socket (AF_SP, NN_PAIR);
+ errno_assert (sb >= 0);
+ rc = nn_bind (sb, SOCKET_ADDRESS);
+ errno_assert (rc >= 0);
+ rc = nn_close (sb);
+ errno_assert (rc == 0);
+#endif
+
/* Try closing a TCP socket while it not connected. At the same time
test specifying the local address for connection. */
sc = nn_socket (AF_SP, NN_PAIR);