forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
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 rust-lang#125421 - Oneirical:bundle-them-yet-again, r=jieyouxu Rewrite `core-no-oom-handling`, `issue-24445` and `issue-38237` `run-make` tests to new `rmake.rs` format Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). The test which is now called `non-pie-thread-local` has an unexplained "only-linux" flag. Could it be worth trying to remove it and changing the CI to test non-Linux platforms on it?
- Loading branch information
Showing
17 changed files
with
85 additions
and
30 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 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 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 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 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 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,16 @@ | ||
// This test checks that the core library can still compile successfully | ||
// when the no_global_oom_handling feature is turned on. | ||
// See https://github.com/rust-lang/rust/pull/110649 | ||
|
||
use run_make_support::{rustc, tmp_dir}; | ||
|
||
fn main() { | ||
rustc() | ||
.edition("2021") | ||
.arg("-Dwarnings") | ||
.crate_type("rlib") | ||
.input("../../../library/core/src/lib.rs") | ||
.sysroot(tmp_dir().join("fakeroot")) | ||
.cfg("no_global_oom_handling") | ||
.run(); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,16 @@ | ||
// A very specific set of circumstances (mainly, implementing Deref, and | ||
// having a procedural macro and a Debug derivation in external crates) caused | ||
// an internal compiler error (ICE) when trying to use rustdoc. This test | ||
// reproduces the exact circumstances which caused the bug and checks | ||
// that it does not happen again. | ||
// See https://github.com/rust-lang/rust/issues/38237 | ||
|
||
//@ ignore-cross-compile | ||
|
||
use run_make_support::{rustc, rustdoc, tmp_dir}; | ||
|
||
fn main() { | ||
rustc().input("foo.rs").run(); | ||
rustc().input("bar.rs").run(); | ||
rustdoc().input("baz.rs").library_search_path(tmp_dir()).output(tmp_dir()).run(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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,34 @@ | ||
// It was once required to use a position-independent executable (PIE) | ||
// in order to use the thread_local! macro, or some symbols would contain | ||
// a NULL address. This was fixed, and this test checks a non-PIE, then a PIE | ||
// build to see if this bug makes a resurgence. | ||
// See https://github.com/rust-lang/rust/pull/24448 | ||
|
||
//@ ignore-cross-compile | ||
//@ only-linux | ||
|
||
use run_make_support::{cc, run, rustc, tmp_dir}; | ||
|
||
fn main() { | ||
rustc().input("foo.rs").run(); | ||
cc().input("foo.c") | ||
.arg("-lfoo") | ||
.library_search_path(tmp_dir()) | ||
.arg("-Wl,--gc-sections") | ||
.arg("-lpthread") | ||
.arg("-ldl") | ||
.out_exe("foo") | ||
.run(); | ||
run("foo"); | ||
cc().input("foo.c") | ||
.arg("-lfoo") | ||
.library_search_path(tmp_dir()) | ||
.arg("-Wl,--gc-sections") | ||
.arg("-lpthread") | ||
.arg("-ldl") | ||
.arg("-pie") | ||
.arg("-fPIC") | ||
.out_exe("foo") | ||
.run(); | ||
run("foo"); | ||
} |