Skip to content

Commit 9fd2fcc

Browse files
tedhorstbrson
authored andcommitted
read stderr before stdout
tests all write to stderr, so read stderr first to keep from blocking while reading stdout
1 parent 36d5074 commit 9fd2fcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiletest/procsrv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ fn run(lib_path: str, prog: str, args: [str],
5252

5353

5454
writeclose(pipe_in.out, input);
55-
let output = readclose(pipe_out.in);
5655
let errput = readclose(pipe_err.in);
56+
let output = readclose(pipe_out.in);
5757
let status = run::waitpid(pid);
5858
ret {status: status, out: output, err: errput};
5959
}

0 commit comments

Comments
 (0)