Skip to content

Commit 213aadd

Browse files
committed
difftest: fix tests on windows
1 parent 63210e9 commit 213aadd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/difftests/runner/src/testcase.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ mod tests {
164164
.test_binaries
165165
.sort_by(|a, b| a.relative_path.cmp(&b.relative_path));
166166
assert_eq!(
167-
test_case.test_binaries[0].relative_path.to_string_lossy(),
168-
"test_case/pkg1"
167+
test_case.test_binaries[0].relative_path,
168+
Path::new("test_case/pkg1")
169169
);
170170
assert_eq!(test_case.test_binaries[0].absolute_path, pkg1_dir);
171171
assert_eq!(
172-
test_case.test_binaries[1].relative_path.to_string_lossy(),
173-
"test_case/pkg2"
172+
test_case.test_binaries[1].relative_path,
173+
Path::new("test_case/pkg2")
174174
);
175175
assert_eq!(test_case.test_binaries[1].absolute_path, pkg2_dir);
176176
}

0 commit comments

Comments
 (0)