Skip to content

Commit 488614d

Browse files
Update tests/run-make/doctests-keep-binaries-2024/rmake.rs test to new run-make API
1 parent f1c1c49 commit 488614d

File tree

1 file changed

+5
-6
lines changed
  • tests/run-make/doctests-keep-binaries-2024

1 file changed

+5
-6
lines changed

Diff for: tests/run-make/doctests-keep-binaries-2024/rmake.rs

+5-6
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33

44
use std::path::Path;
55

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};
87

98
fn setup_test_env<F: FnOnce(&Path, &Path)>(callback: F) {
109
let out_dir = Path::new("doctests");
11-
create_dir(&out_dir);
10+
rfs::create_dir(&out_dir);
1211
rustc().input("t.rs").crate_type("rlib").run();
1312
callback(&out_dir, Path::new("libt.rlib"));
14-
remove_dir_all(out_dir);
13+
rfs::remove_dir_all(out_dir);
1514
}
1615

1716
fn check_generated_binaries() {
@@ -47,7 +46,7 @@ fn main() {
4746
// Behavior with --test-run-directory with relative paths.
4847
setup_test_env(|_, _| {
4948
let run_dir_path = Path::new("rundir");
50-
create_dir(&run_dir_path);
49+
rfs::create_dir(&run_dir_path);
5150

5251
rustdoc()
5352
.input("t.rs")
@@ -61,6 +60,6 @@ fn main() {
6160
.edition("2024")
6261
.run();
6362

64-
remove_dir_all(run_dir_path);
63+
rfs::remove_dir_all(run_dir_path);
6564
});
6665
}

0 commit comments

Comments
 (0)