aboutsummaryrefslogtreecommitdiff
path: root/test/test-tcp-bind-error.c
diff options
context:
space:
mode:
authorAndrius Bentkus <andrius.bentkus@gmail.com>2013-01-18 01:38:06 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-01-18 12:18:23 +0100
commit017e2d5fde0c22d959b0890abb4b614ebf7630f3 (patch)
tree76fbef8f7bcb98b079f385f7b8256e6b8f627281 /test/test-tcp-bind-error.c
parent372ac34d5f80412c09cc40a4e3b72379afa7f637 (diff)
downloadlibuv-017e2d5fde0c22d959b0890abb4b614ebf7630f3.tar.gz
libuv-017e2d5fde0c22d959b0890abb4b614ebf7630f3.zip
unix, windows: make uv_*_bind() error codes consistent
Just like uv_tcp_connect() it should return an EINVAL when the handle is of an invalid type or when the network address is faulty.
Diffstat (limited to 'test/test-tcp-bind-error.c')
-rw-r--r--test/test-tcp-bind-error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-tcp-bind-error.c b/test/test-tcp-bind-error.c
index 03cf42ef..42495356 100644
--- a/test/test-tcp-bind-error.c
+++ b/test/test-tcp-bind-error.c
@@ -128,7 +128,7 @@ TEST_IMPL(tcp_bind_error_fault) {
r = uv_tcp_bind(&server, *garbage_addr);
ASSERT(r == -1);
- ASSERT(uv_last_error(uv_default_loop()).code == UV_EFAULT);
+ ASSERT(uv_last_error(uv_default_loop()).code == UV_EINVAL);
uv_close((uv_handle_t*)&server, close_cb);