Use fs_wrapper
in run-make/prefer-dylib
This commit is contained in:
parent
d79aeaf898
commit
45a9bd5d40
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
//@ ignore-cross-compile
|
||||
|
||||
use run_make_support::{cwd, dynamic_lib_name, read_dir, run, run_fail, rustc};
|
||||
use std::fs::remove_file;
|
||||
use run_make_support::{cwd, dynamic_lib_name, fs_wrapper, read_dir, run, run_fail, rustc};
|
||||
|
||||
fn main() {
|
||||
rustc().input("bar.rs").crate_type("dylib").crate_type("rlib").arg("-Cprefer-dynamic").run();
|
||||
|
@ -9,7 +8,7 @@ fn main() {
|
|||
|
||||
run("foo");
|
||||
|
||||
remove_file(dynamic_lib_name("bar")).unwrap();
|
||||
fs_wrapper::remove_file(dynamic_lib_name("bar"));
|
||||
// This time the command should fail.
|
||||
run_fail("foo");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue