This commit is contained in:
Oneirical 2024-05-20 21:30:48 -04:00
parent 8c43e54ad9
commit 95c47d3396

View File

@ -10,13 +10,8 @@
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."
);
}