We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29b0817 commit 628f701Copy full SHA for 628f701
tests/testsuite/dep_info.rs
@@ -200,12 +200,14 @@ fn dep_path_inside_target_has_correct_path() {
200
let depinfo = p.read_file(depinfo_path.to_str().unwrap());
201
202
let bin_path = p.bin("a");
203
+ let target_debug_blah = Path::new("target").join("debug").join("blah");
204
if !depinfo.lines().any(|line| {
- 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())
207
}) {
208
panic!(
- "Could not find {:?}: target/debug/blah in {:?}",
- bin_path, depinfo_path
209
+ "Could not find {:?}: {:?} in {:?}",
210
+ bin_path, target_debug_blah, depinfo_path
211
);
212
}
213
0 commit comments