diff --git a/src/compiletest/procsrv.rs b/src/compiletest/procsrv.rs index e82ef76b3a3..28bbcd86d06 100644 --- a/src/compiletest/procsrv.rs +++ b/src/compiletest/procsrv.rs @@ -52,8 +52,8 @@ fn run(lib_path: str, prog: str, args: [str], writeclose(pipe_in.out, input); - let output = readclose(pipe_out.in); let errput = readclose(pipe_err.in); + let output = readclose(pipe_out.in); let status = run::waitpid(pid); ret {status: status, out: output, err: errput}; }