Skip to content

Commit

Permalink
translate backslashes to forward slashes in the expected strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Feb 25, 2016
1 parent 6660ad6 commit 588d5d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compiletest/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,9 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError>,
}

let prefixes = expected_errors.iter().map(|ee| {
format!("{}:{}:", testpaths.file.display(), ee.line)
let expected = format!("{}:{}:", testpaths.file.display(), ee.line);
// On windows just translate all '\' path separators to '/'
expected.replace(r"\", "/")
}).collect::<Vec<String>>();

let (expect_help, expect_note) =
Expand Down

0 comments on commit 588d5d1

Please sign in to comment.