Skip to content

Commit

Permalink
Fix test path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
khyperia committed Oct 28, 2020
1 parent 29b0817 commit 628f701
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/testsuite/dep_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,14 @@ fn dep_path_inside_target_has_correct_path() {
let depinfo = p.read_file(depinfo_path.to_str().unwrap());

let bin_path = p.bin("a");
let target_debug_blah = Path::new("target").join("debug").join("blah");
if !depinfo.lines().any(|line| {
line.starts_with(&format!("{}:", bin_path.display())) && line.contains("target/debug/blah")
line.starts_with(&format!("{}:", bin_path.display()))
&& line.contains(target_debug_blah.to_str().unwrap())
}) {
panic!(
"Could not find {:?}: target/debug/blah in {:?}",
bin_path, depinfo_path
"Could not find {:?}: {:?} in {:?}",
bin_path, target_debug_blah, depinfo_path
);
}
}
Expand Down

0 comments on commit 628f701

Please sign in to comment.