forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
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#129690 - Oneirical:run-make-tidbits, r=jiey…
…ouxu Add `needs-unwind` compiletest directive to `libtest-thread-limit` and replace some `Path` with `path` in `run-make` 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). This PR does two things: 1. Add this to `libtest-thread-limit` ([Why?](rust-lang#128507 (comment))) ``` //@ needs-unwind // Reason: this should be ignored in cg_clif (Cranelift) CI and anywhere // else that uses panic=abort. ``` 2. Use `path` instead of `Path` to simplify multiple run-make tests.
- Loading branch information
Showing
9 changed files
with
43 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
//@ only-windows | ||
// Reason: dos devices are a Windows thing | ||
|
||
use std::path::Path; | ||
|
||
use run_make_support::{rustc, static_lib_name}; | ||
use run_make_support::{path, rustc, static_lib_name}; | ||
|
||
fn main() { | ||
rustc().input(r"\\.\NUL").crate_type("staticlib").run(); | ||
rustc().input(r"\\?\NUL").crate_type("staticlib").run(); | ||
|
||
assert!(Path::new(&static_lib_name("rust_out")).exists()); | ||
assert!(path(&static_lib_name("rust_out")).exists()); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
use std::path::Path; | ||
|
||
use run_make_support::rustc; | ||
use run_make_support::{path, rustc}; | ||
|
||
fn main() { | ||
rustc().input("bar.rs").crate_name("foo").run(); | ||
assert!(Path::new("libfoo.rlib").is_file()); | ||
assert!(path("libfoo.rlib").is_file()); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
// Checks that if the output folder doesn't exist, rustdoc will create it. | ||
|
||
use std::path::Path; | ||
|
||
use run_make_support::rustdoc; | ||
use run_make_support::{path, rustdoc}; | ||
|
||
fn main() { | ||
let out_dir = Path::new("foo/bar/doc"); | ||
let out_dir = path("foo/bar/doc"); | ||
rustdoc().input("foo.rs").out_dir(&out_dir).run(); | ||
assert!(out_dir.exists()); | ||
} |