We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f91da72 commit bd23e0eCopy full SHA for bd23e0e
src/tools/compiletest/src/runtest.rs
@@ -2968,7 +2968,9 @@ impl<'test> TestCx<'test> {
2968
for _ in res.stdout.split('\n').filter(|s| s.starts_with("test ")).inspect(|s| {
2969
if let Some((left, right)) = s.split_once(" - ") {
2970
let path = left.rsplit("test ").next().unwrap();
2971
- if let Some(ref mut v) = files.get_mut(&path.replace('\\', "/")) {
+ let path = fs::canonicalize(&path).expect("failed to canonicalize");
2972
+ let path = path.to_str().unwrap().replace('\\', "/");
2973
+ if let Some(ref mut v) = files.get_mut(&path) {
2974
tested += 1;
2975
let mut iter = right.split("(line ");
2976
iter.next();
0 commit comments