test: fix compilation warnings
PR-URL: https://github.com/libuv/libuv/pull/23
This commit is contained in:
parent
ff29322b99
commit
b5442510c5
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user