Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate run-make/no-intermediate-extras to new rmake.rs #125218

Merged
merged 5 commits into from
May 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
simplify
  • Loading branch information
Oneirical committed May 21, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 95c47d3396c324b32ffaedc2681a370107aeb6be
13 changes: 4 additions & 9 deletions tests/run-make/no-intermediate-extras/rmake.rs
Original file line number Diff line number Diff line change
@@ -10,13 +10,8 @@ use std::fs;

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."
);
}