Skip to content

Commit 95c47d3

Browse files
committed
simplify
1 parent 8c43e54 commit 95c47d3

File tree

1 file changed

+4
-9
lines changed
  • tests/run-make/no-intermediate-extras

1 file changed

+4
-9
lines changed

tests/run-make/no-intermediate-extras/rmake.rs

+4-9
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,8 @@ use std::fs;
1010

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

0 commit comments

Comments
 (0)