aboutsummaryrefslogtreecommitdiff
path: root/deps/uv/test/test-spawn.c
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-09-21 10:14:00 -0400
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-09-24 07:14:45 +0200
commit2790db5e3d74c4f7521cc27a1115228700dd4049 (patch)
tree14690a4e418d74d387491dc7afcbcde02c62e99b /deps/uv/test/test-spawn.c
parentea8000f1195801cf602946c6bd85b8b5dbe83d43 (diff)
downloadandroid-node-v8-2790db5e3d74c4f7521cc27a1115228700dd4049.tar.gz
android-node-v8-2790db5e3d74c4f7521cc27a1115228700dd4049.tar.bz2
android-node-v8-2790db5e3d74c4f7521cc27a1115228700dd4049.zip
deps: upgrade to libuv 1.23.1
PR-URL: https://github.com/nodejs/node/pull/22997 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'deps/uv/test/test-spawn.c')
-rw-r--r--deps/uv/test/test-spawn.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/uv/test/test-spawn.c b/deps/uv/test/test-spawn.c
index 1ab6e78807..4fcd905eed 100644
--- a/deps/uv/test/test-spawn.c
+++ b/deps/uv/test/test-spawn.c
@@ -1733,6 +1733,7 @@ TEST_IMPL(spawn_inherit_streams) {
uv_buf_t buf;
unsigned int i;
int r;
+ int bidir;
uv_write_t write_req;
uv_loop_t* loop;
@@ -1751,6 +1752,15 @@ TEST_IMPL(spawn_inherit_streams) {
ASSERT(uv_pipe_open(&pipe_stdout_child, fds_stdout[1]) == 0);
ASSERT(uv_pipe_open(&pipe_stdin_parent, fds_stdin[1]) == 0);
ASSERT(uv_pipe_open(&pipe_stdout_parent, fds_stdout[0]) == 0);
+ ASSERT(uv_is_readable((uv_stream_t*) &pipe_stdin_child));
+ ASSERT(uv_is_writable((uv_stream_t*) &pipe_stdout_child));
+ ASSERT(uv_is_writable((uv_stream_t*) &pipe_stdin_parent));
+ ASSERT(uv_is_readable((uv_stream_t*) &pipe_stdout_parent));
+ /* Some systems (SVR4) open a bidirectional pipe, most don't. */
+ bidir = uv_is_writable((uv_stream_t*) &pipe_stdin_child);
+ ASSERT(uv_is_readable((uv_stream_t*) &pipe_stdout_child) == bidir);
+ ASSERT(uv_is_readable((uv_stream_t*) &pipe_stdin_parent) == bidir);
+ ASSERT(uv_is_writable((uv_stream_t*) &pipe_stdout_parent) == bidir);
child_stdio[0].flags = UV_INHERIT_STREAM;
child_stdio[0].data.stream = (uv_stream_t *)&pipe_stdin_child;