File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -200,12 +200,14 @@ fn dep_path_inside_target_has_correct_path() {
200
200
let depinfo = p. read_file ( depinfo_path. to_str ( ) . unwrap ( ) ) ;
201
201
202
202
let bin_path = p. bin ( "a" ) ;
203
+ let target_debug_blah = Path :: new ( "target" ) . join ( "debug" ) . join ( "blah" ) ;
203
204
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 ( ) )
205
207
} ) {
206
208
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
209
211
) ;
210
212
}
211
213
}
You can’t perform that action at this time.
0 commit comments