unix: remove spawn buffer size verification test
This commit is contained in:
parent
216e9490ac
commit
f98605a262
@ -603,21 +603,6 @@ TEST_IMPL(spawn_stdin) {
|
||||
r = uv_spawn(uv_default_loop(), &process, &options);
|
||||
ASSERT_OK(r);
|
||||
|
||||
int recv_buf;
|
||||
int recv_fd;
|
||||
int send_buf;
|
||||
int send_fd;
|
||||
int size = 64 * 1024;
|
||||
socklen_t optlen = sizeof(int);
|
||||
|
||||
ASSERT_OK(uv_fileno((uv_handle_t*) options.stdio[0].data.stream, &recv_fd));
|
||||
ASSERT_OK(getsockopt(recv_fd, SOL_SOCKET, SO_RCVBUF, &recv_buf, &optlen));
|
||||
ASSERT_EQ(recv_buf, size);
|
||||
|
||||
ASSERT_OK(uv_fileno((uv_handle_t*) options.stdio[1].data.stream, &send_fd));
|
||||
ASSERT_OK(getsockopt(send_fd, SOL_SOCKET, SO_SNDBUF, &send_buf, &optlen));
|
||||
ASSERT_EQ(send_buf, size);
|
||||
|
||||
buf.base = buffer;
|
||||
buf.len = sizeof(buffer);
|
||||
r = uv_write(&write_req, (uv_stream_t*) &in, &buf, 1, write_cb);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user