diff options
Diffstat (limited to 'deps/uv/test/test-pipe-close-stdout-read-stdin.c')
-rw-r--r-- | deps/uv/test/test-pipe-close-stdout-read-stdin.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/uv/test/test-pipe-close-stdout-read-stdin.c b/deps/uv/test/test-pipe-close-stdout-read-stdin.c index 26a1ee76c9..3064babf98 100644 --- a/deps/uv/test/test-pipe-close-stdout-read-stdin.c +++ b/deps/uv/test/test-pipe-close-stdout-read-stdin.c @@ -54,7 +54,8 @@ TEST_IMPL(pipe_close_stdout_read_stdin) { int fd[2]; int status; - pipe(fd); + r = pipe(fd); + ASSERT(r == 0); if ((pid = fork()) == 0) { /* @@ -63,7 +64,8 @@ TEST_IMPL(pipe_close_stdout_read_stdin) { */ close(fd[1]); close(0); - dup(fd[0]); + r = dup(fd[0]); + ASSERT(r != -1); /* Create a stream that reads from the pipe. */ uv_pipe_t stdin_pipe; |