Skip to content

Commit 628f701

Browse files
committed
Fix test path on windows
1 parent 29b0817 commit 628f701

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/testsuite/dep_info.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,14 @@ fn dep_path_inside_target_has_correct_path() {
200200
let depinfo = p.read_file(depinfo_path.to_str().unwrap());
201201

202202
let bin_path = p.bin("a");
203+
let target_debug_blah = Path::new("target").join("debug").join("blah");
203204
if !depinfo.lines().any(|line| {
204-
line.starts_with(&format!("{}:", bin_path.display())) && line.contains("target/debug/blah")
205+
line.starts_with(&format!("{}:", bin_path.display()))
206+
&& line.contains(target_debug_blah.to_str().unwrap())
205207
}) {
206208
panic!(
207-
"Could not find {:?}: target/debug/blah in {:?}",
208-
bin_path, depinfo_path
209+
"Could not find {:?}: {:?} in {:?}",
210+
bin_path, target_debug_blah, depinfo_path
209211
);
210212
}
211213
}

0 commit comments

Comments
 (0)