mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
~[] to Vec in harness/contenttest/contenttest.rs
This commit is contained in:
parent
c174a40afd
commit
4d595b7d8c
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ fn run_test(file: ~str) {
|
|||
Ok(p) => p,
|
||||
_ => fail!("Unable to configure process."),
|
||||
};
|
||||
let mut output = ~[];
|
||||
let mut output = Vec::new();
|
||||
loop {
|
||||
let byte = prc.stdout.get_mut_ref().read_byte();
|
||||
match byte {
|
||||
|
@ -120,7 +120,7 @@ fn run_test(file: ~str) {
|
|||
}
|
||||
}
|
||||
|
||||
let out = str::from_utf8(output);
|
||||
let out = str::from_utf8(output.as_slice());
|
||||
let lines: ~[&str] = out.unwrap().split('\n').collect();
|
||||
for &line in lines.iter() {
|
||||
if line.contains("TEST-UNEXPECTED-FAIL") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue