We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c43e54 commit 95c47d3Copy full SHA for 95c47d3
tests/run-make/no-intermediate-extras/rmake.rs
@@ -10,13 +10,8 @@ use std::fs;
10
11
fn main() {
12
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
+ assert!(
+ fs::remove_file(tmp_dir().join("foo.bc")).is_err(),
+ "An unwanted .bc file was created by run-make/no-intermediate-extras."
+ );
22
}
0 commit comments