forked from cory/tildefriends
libuv 1.44.2
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3934 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
16
deps/libuv/test/test-pipe-bind-error.c
vendored
16
deps/libuv/test/test-pipe-bind-error.c
vendored
@@ -137,3 +137,19 @@ TEST_IMPL(pipe_listen_without_bind) {
|
||||
MAKE_VALGRIND_HAPPY();
|
||||
return 0;
|
||||
}
|
||||
|
||||
TEST_IMPL(pipe_bind_or_listen_error_after_close) {
|
||||
uv_pipe_t server;
|
||||
|
||||
ASSERT_EQ(uv_pipe_init(uv_default_loop(), &server, 0), 0);
|
||||
uv_close((uv_handle_t*) &server, NULL);
|
||||
|
||||
ASSERT_EQ(uv_pipe_bind(&server, TEST_PIPENAME), UV_EINVAL);
|
||||
|
||||
ASSERT_EQ(uv_listen((uv_stream_t*) &server, SOMAXCONN, NULL), UV_EINVAL);
|
||||
|
||||
ASSERT_EQ(uv_run(uv_default_loop(), UV_RUN_DEFAULT), 0);
|
||||
|
||||
MAKE_VALGRIND_HAPPY();
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user