File tree 1 file changed +5
-6
lines changed
tests/run-make/doctests-keep-binaries-2024
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 3
3
4
4
use std:: path:: Path ;
5
5
6
- use run_make_support:: fs_wrapper:: { create_dir, remove_dir_all} ;
7
- use run_make_support:: { run, rustc, rustdoc} ;
6
+ use run_make_support:: { rfs, run, rustc, rustdoc} ;
8
7
9
8
fn setup_test_env < F : FnOnce ( & Path , & Path ) > ( callback : F ) {
10
9
let out_dir = Path :: new ( "doctests" ) ;
11
- create_dir ( & out_dir) ;
10
+ rfs :: create_dir ( & out_dir) ;
12
11
rustc ( ) . input ( "t.rs" ) . crate_type ( "rlib" ) . run ( ) ;
13
12
callback ( & out_dir, Path :: new ( "libt.rlib" ) ) ;
14
- remove_dir_all ( out_dir) ;
13
+ rfs :: remove_dir_all ( out_dir) ;
15
14
}
16
15
17
16
fn check_generated_binaries ( ) {
@@ -47,7 +46,7 @@ fn main() {
47
46
// Behavior with --test-run-directory with relative paths.
48
47
setup_test_env ( |_, _| {
49
48
let run_dir_path = Path :: new ( "rundir" ) ;
50
- create_dir ( & run_dir_path) ;
49
+ rfs :: create_dir ( & run_dir_path) ;
51
50
52
51
rustdoc ( )
53
52
. input ( "t.rs" )
@@ -61,6 +60,6 @@ fn main() {
61
60
. edition ( "2024" )
62
61
. run ( ) ;
63
62
64
- remove_dir_all ( run_dir_path) ;
63
+ rfs :: remove_dir_all ( run_dir_path) ;
65
64
} ) ;
66
65
}
You can’t perform that action at this time.
0 commit comments