diff options
author | cjihrig <cjihrig@gmail.com> | 2018-09-21 10:14:00 -0400 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-09-24 07:14:45 +0200 |
commit | 2790db5e3d74c4f7521cc27a1115228700dd4049 (patch) | |
tree | 14690a4e418d74d387491dc7afcbcde02c62e99b /deps/uv/test/test-handle-fileno.c | |
parent | ea8000f1195801cf602946c6bd85b8b5dbe83d43 (diff) | |
download | android-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-handle-fileno.c')
-rw-r--r-- | deps/uv/test/test-handle-fileno.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/uv/test/test-handle-fileno.c b/deps/uv/test/test-handle-fileno.c index 3fe933adeb..8a093e2ea4 100644 --- a/deps/uv/test/test-handle-fileno.c +++ b/deps/uv/test/test-handle-fileno.c @@ -27,7 +27,7 @@ static int get_tty_fd(void) { /* Make sure we have an FD that refers to a tty */ #ifdef _WIN32 HANDLE handle; - handle = CreateFileA("conout$", + handle = CreateFileA("conin$", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, @@ -107,11 +107,15 @@ TEST_IMPL(handle_fileno) { } else { r = uv_tty_init(loop, &tty, tty_fd, 0); ASSERT(r == 0); + ASSERT(uv_is_readable((uv_stream_t*) &tty)); + ASSERT(!uv_is_writable((uv_stream_t*) &tty)); r = uv_fileno((uv_handle_t*) &tty, &fd); ASSERT(r == 0); uv_close((uv_handle_t*) &tty, NULL); r = uv_fileno((uv_handle_t*) &tty, &fd); ASSERT(r == UV_EBADF); + ASSERT(!uv_is_readable((uv_stream_t*) &tty)); + ASSERT(!uv_is_writable((uv_stream_t*) &tty)); } uv_run(loop, UV_RUN_DEFAULT); |