From b5442510c56bb0ed15325054b2235ad820c1eb1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 2 Dec 2014 09:34:44 +0100 Subject: [PATCH] test: fix compilation warnings PR-URL: https://github.com/libuv/libuv/pull/23 --- test/runner-unix.c | 1 - test/test-pipe-close-stdout-read-stdin.c | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/runner-unix.c b/test/runner-unix.c index d27515108..1f12c6f12 100644 --- a/test/runner-unix.c +++ b/test/runner-unix.c @@ -43,7 +43,6 @@ /* Do platform-specific initialization. */ int platform_init(int argc, char **argv) { const char* tap; - ssize_t n; tap = getenv("UV_TAP_OUTPUT"); tap_output = (tap != NULL && atoi(tap) > 0); diff --git a/test/test-pipe-close-stdout-read-stdin.c b/test/test-pipe-close-stdout-read-stdin.c index 26a1ee76c..3064babf9 100644 --- a/test/test-pipe-close-stdout-read-stdin.c +++ b/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;