mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
contenttest: Fail if Servo exits with non-zero status
Remove "let stdout" to make the borrow checker happy.
This commit is contained in:
parent
e349bfadb7
commit
8891587901
1 changed files with 6 additions and 2 deletions
|
@ -100,10 +100,9 @@ fn run_test(file: ~str) {
|
|||
};
|
||||
|
||||
let mut prc = Process::new(config).unwrap();
|
||||
let stdout = prc.io[1].get_mut_ref();
|
||||
let mut output = ~[];
|
||||
loop {
|
||||
let byte = stdout.read_byte();
|
||||
let byte = prc.io[1].get_mut_ref().read_byte();
|
||||
match byte {
|
||||
Some(byte) => {
|
||||
print!("{}", byte as char);
|
||||
|
@ -120,4 +119,9 @@ fn run_test(file: ~str) {
|
|||
fail!(line);
|
||||
}
|
||||
}
|
||||
|
||||
let retval = prc.wait();
|
||||
if retval != 0 {
|
||||
fail!("Servo exited with non-zero status {}", retval);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue