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() {
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}
You can’t perform that action at this time.
0 commit comments