File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3172,11 +3172,11 @@ fn switch_features_rerun() {
3172
3172
. build ( ) ;
3173
3173
3174
3174
p. cargo ( "build -v --features=foo" ) . run ( ) ;
3175
- p. safely_rename_run ( "foo" , "with_foo" ) . with_stdout ( "foo\n " ) . run ( ) ;
3175
+ p. rename_run ( "foo" , "with_foo" ) . with_stdout ( "foo\n " ) . run ( ) ;
3176
3176
p. cargo ( "build -v" ) . run ( ) ;
3177
- p. safely_rename_run ( "foo" , "without_foo" ) . with_stdout ( "bar\n " ) . run ( ) ;
3177
+ p. rename_run ( "foo" , "without_foo" ) . with_stdout ( "bar\n " ) . run ( ) ;
3178
3178
p. cargo ( "build -v --features=foo" ) . run ( ) ;
3179
- p. safely_rename_run ( "foo" , "with_foo2" ) . with_stdout ( "foo\n " ) . run ( ) ;
3179
+ p. rename_run ( "foo" , "with_foo2" ) . with_stdout ( "foo\n " ) . run ( ) ;
3180
3180
}
3181
3181
3182
3182
#[ test]
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ fn changing_bin_features_caches_targets() {
455
455
" ,
456
456
)
457
457
. run ( ) ;
458
- p. safely_rename_run ( "foo" , "off1" ) . with_stdout ( "feature off" ) . run ( ) ;
458
+ p. rename_run ( "foo" , "off1" ) . with_stdout ( "feature off" ) . run ( ) ;
459
459
460
460
p. cargo ( "build --features foo" )
461
461
. with_stderr (
@@ -465,7 +465,7 @@ fn changing_bin_features_caches_targets() {
465
465
" ,
466
466
)
467
467
. run ( ) ;
468
- p. safely_rename_run ( "foo" , "on1" ) . with_stdout ( "feature on" ) . run ( ) ;
468
+ p. rename_run ( "foo" , "on1" ) . with_stdout ( "feature on" ) . run ( ) ;
469
469
470
470
/* Targets should be cached from the first build */
471
471
@@ -476,7 +476,7 @@ fn changing_bin_features_caches_targets() {
476
476
" ,
477
477
)
478
478
. run ( ) ;
479
- p. safely_rename_run ( "foo" , "off2" ) . with_stdout ( "feature off" ) . run ( ) ;
479
+ p. rename_run ( "foo" , "off2" ) . with_stdout ( "feature off" ) . run ( ) ;
480
480
481
481
p. cargo ( "build --features foo" )
482
482
. with_stderr (
@@ -485,7 +485,7 @@ fn changing_bin_features_caches_targets() {
485
485
" ,
486
486
)
487
487
. run ( ) ;
488
- p. safely_rename_run ( "foo" , "on2" ) . with_stdout ( "feature on" ) . run ( ) ;
488
+ p. rename_run ( "foo" , "on2" ) . with_stdout ( "feature on" ) . run ( ) ;
489
489
}
490
490
491
491
#[ test]
Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ impl Project {
412
412
/// method to run the executable. Each time you call this,
413
413
/// use a new name for `dst`.
414
414
/// See https://github.com/rust-lang/cargo/issues/5481
415
- pub fn safely_rename_run ( & self , src : & str , dst : & str ) -> Execs {
415
+ pub fn rename_run ( & self , src : & str , dst : & str ) -> Execs {
416
416
let src = self . bin ( src) ;
417
417
let dst = self . bin ( dst) ;
418
418
fs:: rename ( & src, & dst)
You can’t perform that action at this time.
0 commit comments