translate backslashes to forward slashes in the expected strings
This commit is contained in:
parent
6660ad6f8d
commit
588d5d1e3d
@ -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) =
|
||||
|
Loading…
x
Reference in New Issue
Block a user