diff options
| author | Ted Horst <ted.horst@earthlink.net> | 2012-02-08 07:35:53 -0600 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-10 19:42:32 -0800 |
| commit | 9fd2fcc99cae63d12da99fd0b4b1891dd6b26dba (patch) | |
| tree | 3c10400c8dc483067bdd53fc334b0b0bfae31865 | |
| parent | 36d5074f8f402c13354bf67dc90fcc30f870a0e9 (diff) | |
read stderr before stdout
tests all write to stderr, so read stderr first to keep from blocking while reading stdout
| -rw-r--r-- | src/compiletest/procsrv.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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}; } |
