simplify
This commit is contained in:
parent
8c43e54ad9
commit
95c47d3396
@ -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."
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user