summaryrefslogtreecommitdiff
path: root/deps/uv/test
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <saghul@gmail.com>2015-01-14 20:26:02 +0100
committerBert Belder <bertbelder@gmail.com>2015-01-14 23:52:14 +0100
commit07bd05ba332e078c1ba76635921f5448a3e884cf (patch)
tree1c4cf7ac62c5fc430c052eb8fe8c235612a56c52 /deps/uv/test
parente177377a4bc0cdbaecb8b17a58e57c73b4ca0090 (diff)
downloadnode-new-07bd05ba332e078c1ba76635921f5448a3e884cf.tar.gz
deps: update libuv to 1.2.1
PR: https://github.com/iojs/io.js/pull/423 Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-by: Bert Belder <bertbelder@gmail.com>
Diffstat (limited to 'deps/uv/test')
-rw-r--r--deps/uv/test/test-close-fd.c1
-rw-r--r--deps/uv/test/test-osx-select.c11
-rw-r--r--deps/uv/test/test-spawn.c1
-rw-r--r--deps/uv/test/test-tcp-try-write.c12
4 files changed, 8 insertions, 17 deletions
diff --git a/deps/uv/test/test-close-fd.c b/deps/uv/test/test-close-fd.c
index 0d17f07661..93a7bd7c02 100644
--- a/deps/uv/test/test-close-fd.c
+++ b/deps/uv/test/test-close-fd.c
@@ -54,7 +54,6 @@ TEST_IMPL(close_fd) {
int fd[2];
ASSERT(0 == pipe(fd));
- ASSERT(0 == fcntl(fd[0], F_SETFL, O_NONBLOCK));
ASSERT(0 == uv_pipe_init(uv_default_loop(), &pipe_handle, 0));
ASSERT(0 == uv_pipe_open(&pipe_handle, fd[0]));
fd[0] = -1; /* uv_pipe_open() takes ownership of the file descriptor. */
diff --git a/deps/uv/test/test-osx-select.c b/deps/uv/test/test-osx-select.c
index ef551eaf2f..6ccf603483 100644
--- a/deps/uv/test/test-osx-select.c
+++ b/deps/uv/test/test-osx-select.c
@@ -54,8 +54,10 @@ TEST_IMPL(osx_select) {
uv_tty_t tty;
fd = open("/dev/tty", O_RDONLY);
-
- ASSERT(fd >= 0);
+ if (fd < 0) {
+ LOGF("Cannot open /dev/tty as read-only: %s\n", strerror(errno));
+ return TEST_SKIP;
+ }
r = uv_tty_init(uv_default_loop(), &tty, fd, 1);
ASSERT(r == 0);
@@ -104,7 +106,10 @@ TEST_IMPL(osx_select_many_fds) {
}
fd = open("/dev/tty", O_RDONLY);
- ASSERT(fd >= 0);
+ if (fd < 0) {
+ LOGF("Cannot open /dev/tty as read-only: %s\n", strerror(errno));
+ return TEST_SKIP;
+ }
r = uv_tty_init(uv_default_loop(), &tty, fd, 1);
ASSERT(r == 0);
diff --git a/deps/uv/test/test-spawn.c b/deps/uv/test/test-spawn.c
index 5c25f81926..a229d225f1 100644
--- a/deps/uv/test/test-spawn.c
+++ b/deps/uv/test/test-spawn.c
@@ -1243,7 +1243,6 @@ TEST_IMPL(closed_fd_events) {
/* create a pipe and share it with a child process */
ASSERT(0 == pipe(fd));
- ASSERT(0 == fcntl(fd[0], F_SETFL, O_NONBLOCK));
/* spawn_helper4 blocks indefinitely. */
init_process_options("spawn_helper4", exit_cb);
diff --git a/deps/uv/test/test-tcp-try-write.c b/deps/uv/test/test-tcp-try-write.c
index baff6cf36c..8a60136b64 100644
--- a/deps/uv/test/test-tcp-try-write.c
+++ b/deps/uv/test/test-tcp-try-write.c
@@ -28,16 +28,6 @@
#define MAX_BYTES 1024 * 1024
-#ifdef _WIN32
-
-TEST_IMPL(tcp_try_write) {
-
- MAKE_VALGRIND_HAPPY();
- return 0;
-}
-
-#else /* !_WIN32 */
-
static uv_tcp_t server;
static uv_tcp_t client;
static uv_tcp_t incoming;
@@ -138,5 +128,3 @@ TEST_IMPL(tcp_try_write) {
MAKE_VALGRIND_HAPPY();
return 0;
}
-
-#endif /* !_WIN32 */