Skip to content

Commit

Permalink
Use fs_wrapper in run-make/prefer-dylib
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 12, 2024
1 parent d79aeaf commit 45a9bd5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/run-make/prefer-dylib/rmake.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
//@ 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();
rustc().input("foo.rs").arg("-Cprefer-dynamic").run();

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");
}

0 comments on commit 45a9bd5

Please sign in to comment.