From 9fd2fcc99cae63d12da99fd0b4b1891dd6b26dba Mon Sep 17 00:00:00 2001 From: Ted Horst Date: Wed, 8 Feb 2012 07:35:53 -0600 Subject: [PATCH] read stderr before stdout tests all write to stderr, so read stderr first to keep from blocking while reading stdout --- src/compiletest/procsrv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiletest/procsrv.rs b/src/compiletest/procsrv.rs index e82ef76b3a31..28bbcd86d06f 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}; }