Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed May 21, 2024
1 parent 8c43e54 commit 95c47d3
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tests/run-make/no-intermediate-extras/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ use std::fs;

fn main() {
rustc().crate_type("rlib").arg("--test").input("foo.rs").run();
match fs::remove_file(tmp_dir().join("foo.bc")) {
Ok(_) => {
println!("An unwanted .bc file was created by run-make/no-intermediate-extras.");
std::process::exit(1);
}
Err(e) => {
std::process::exit(0);
}
}
assert!(
fs::remove_file(tmp_dir().join("foo.bc")).is_err(),
"An unwanted .bc file was created by run-make/no-intermediate-extras."
);
}

0 comments on commit 95c47d3

Please sign in to comment.