Skip to content

Commit 45a9bd5

Browse files
Use fs_wrapper in run-make/prefer-dylib
1 parent d79aeaf commit 45a9bd5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/run-make/prefer-dylib/rmake.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
//@ ignore-cross-compile
22

3-
use run_make_support::{cwd, dynamic_lib_name, read_dir, run, run_fail, rustc};
4-
use std::fs::remove_file;
3+
use run_make_support::{cwd, dynamic_lib_name, fs_wrapper, read_dir, run, run_fail, rustc};
54

65
fn main() {
76
rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").arg("-Cprefer-dynamic").run();
87
rustc().input("foo.rs").arg("-Cprefer-dynamic").run();
98

109
run("foo");
1110

12-
remove_file(dynamic_lib_name("bar")).unwrap();
11+
fs_wrapper::remove_file(dynamic_lib_name("bar"));
1312
// This time the command should fail.
1413
run_fail("foo");
1514
}

0 commit comments

Comments
 (0)