summaryrefslogtreecommitdiff
path: root/deps/uv/test/test-bind-error.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/uv/test/test-bind-error.c')
-rw-r--r--deps/uv/test/test-bind-error.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/deps/uv/test/test-bind-error.c b/deps/uv/test/test-bind-error.c
index 587224acb9..ee8a84789a 100644
--- a/deps/uv/test/test-bind-error.c
+++ b/deps/uv/test/test-bind-error.c
@@ -171,3 +171,17 @@ TEST_IMPL(bind_error_inval) {
return 0;
}
+
+TEST_IMPL(bind_localhost_ok) {
+ struct sockaddr_in addr = uv_ip4_addr("127.0.0.1", TEST_PORT);
+
+ uv_tcp_t server;
+ int r;
+
+ uv_init();
+
+ r = uv_tcp_init(&server);
+ ASSERT(r == 0);
+ r = uv_bind(&server, addr);
+ ASSERT(r == 0);
+}