Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7ef533b

Browse files
authoredMay 21, 2024
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).
2 parents 4abf179 + 95c47d3 commit 7ef533b

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed
 

‎src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ run-make/no-alloc-shim/Makefile
177177
run-make/no-builtins-attribute/Makefile
178178
run-make/no-builtins-lto/Makefile
179179
run-make/no-duplicate-libs/Makefile
180-
run-make/no-intermediate-extras/Makefile
181180
run-make/obey-crate-type-flag/Makefile
182181
run-make/optimization-remarks-dir-pgo/Makefile
183182
run-make/optimization-remarks-dir/Makefile

‎tests/run-make/no-intermediate-extras/Makefile

-8
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// When using the --test flag with an rlib, this used to generate
2+
// an unwanted .bc file, which should not exist. This test checks
3+
// that the bug causing the generation of this file has not returned.
4+
// See https://github.com/rust-lang/rust/issues/10973
5+
6+
//@ ignore-cross-compile
7+
8+
use run_make_support::{rustc, tmp_dir};
9+
use std::fs;
10+
11+
fn main() {
12+
rustc().crate_type("rlib").arg("--test").input("foo.rs").run();
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+
);
17+
}

0 commit comments

Comments
 (0)
Failed to load comments.