simplify
This commit is contained in:
parent
8c43e54ad9
commit
95c47d3396
@ -10,13 +10,8 @@ use std::fs;
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
rustc().crate_type("rlib").arg("--test").input("foo.rs").run();
|
rustc().crate_type("rlib").arg("--test").input("foo.rs").run();
|
||||||
match fs::remove_file(tmp_dir().join("foo.bc")) {
|
assert!(
|
||||||
Ok(_) => {
|
fs::remove_file(tmp_dir().join("foo.bc")).is_err(),
|
||||||
println!("An unwanted .bc file was created by run-make/no-intermediate-extras.");
|
"An unwanted .bc file was created by run-make/no-intermediate-extras."
|
||||||
std::process::exit(1);
|
);
|
||||||
}
|
|
||||||
Err(e) => {
|
|
||||||
std::process::exit(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user