-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #125218 - Oneirical:easy-test-the-third, r=jieyouxu
Migrate `run-make/no-intermediate-extras` to new `rmake.rs` Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
- Loading branch information
Showing
3 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// When using the --test flag with an rlib, this used to generate | ||
// an unwanted .bc file, which should not exist. This test checks | ||
// that the bug causing the generation of this file has not returned. | ||
// See https://github.com/rust-lang/rust/issues/10973 | ||
|
||
//@ ignore-cross-compile | ||
|
||
use run_make_support::{rustc, tmp_dir}; | ||
use std::fs; | ||
|
||
fn main() { | ||
rustc().crate_type("rlib").arg("--test").input("foo.rs").run(); | ||
assert!( | ||
fs::remove_file(tmp_dir().join("foo.bc")).is_err(), | ||
"An unwanted .bc file was created by run-make/no-intermediate-extras." | ||
); | ||
} |