fix run-pass test error message parsing

This commit is contained in:
Oliver Schneider 2016-09-28 14:53:43 +02:00
parent 9e9d05e3ef
commit 73f6d6e418
No known key found for this signature in database
GPG Key ID: 56D6EEA0FC67AC46

View File

@ -91,7 +91,7 @@ fn compile_test() {
},
Ok(output) => {
let output_err = std::str::from_utf8(&output.stderr).unwrap();
if let Some(text) = output_err.splitn(2, "thread 'main' panicked at 'no mir for `").nth(1) {
if let Some(text) = output_err.splitn(2, "no mir for `").nth(1) {
mir_not_found += 1;
let end = text.find('`').unwrap();
writeln!(stderr.lock(), "NO MIR FOR `{}`", &text[..end]).unwrap();