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#127820 - Oneirical:intestellar-travel, r=jieyouxu Rewrite and rename `issue-14698`. `issue-33329` and `issue-107094` `run-make` tests to rmake or ui 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). try-job: armhf-gnu try-job: test-various try-job: aarch64-apple try-job: x86_64-msvc
- Loading branch information
Showing
10 changed files
with
50 additions
and
20 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
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,20 @@ | ||
// When the TMP (on Windows) or TMPDIR (on Unix) variable is set to an invalid | ||
// or non-existing directory, this used to cause an internal compiler error (ICE). After the | ||
// addition of proper error handling in #28430, this test checks that the expected message is | ||
// printed. | ||
// See https://github.com/rust-lang/rust/issues/14698 | ||
|
||
use run_make_support::{is_windows, rustc}; | ||
|
||
// NOTE: This is not a UI test despite its simplicity, as the error message contains a path | ||
// with some variability that is difficult to normalize | ||
|
||
fn main() { | ||
let mut rustc = rustc(); | ||
if is_windows() { | ||
rustc.env("TMP", "fake"); | ||
} else { | ||
rustc.env("TMPDIR", "fake"); | ||
} | ||
rustc.input("foo.rs").run_fail().assert_stderr_contains("couldn't create a temp dir"); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,20 @@ | ||
// `--version --verbose` should display the git-commit hashes of rustc and rustdoc, but this | ||
// functionality was lost due to #104184. After this feature was returned by #109981, this | ||
// test ensures it will not be broken again. | ||
// See https://github.com/rust-lang/rust/issues/107094 | ||
|
||
//@ needs-git-hash | ||
|
||
use run_make_support::{bare_rustc, bare_rustdoc, regex}; | ||
|
||
fn main() { | ||
let out_rustc = | ||
bare_rustc().arg("--version").arg("--verbose").run().stdout_utf8().to_lowercase(); | ||
let out_rustdoc = | ||
bare_rustdoc().arg("--version").arg("--verbose").run().stdout_utf8().to_lowercase(); | ||
let re = | ||
regex::Regex::new(r#"commit-hash: [0-9a-f]{40}\ncommit-date: [0-9]{4}-[0-9]{2}-[0-9]{2}"#) | ||
.unwrap(); | ||
assert!(re.is_match(&out_rustc)); | ||
assert!(re.is_match(&out_rustdoc)); | ||
} |
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,8 @@ | ||
// The attentive may note the underscores in the target triple, making it invalid. This test | ||
// checks that such invalid target specs are rejected by the compiler. | ||
// See https://github.com/rust-lang/rust/issues/33329 | ||
|
||
//@ needs-llvm-components: x86 | ||
//@ compile-flags: --target x86_64_unknown-linux-musl | ||
|
||
fn main() {} |
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,2 @@ | ||
error: Error loading target specification: Could not find specification for target "x86_64_unknown-linux-musl". Run `rustc --print target-list` for a list of built-in targets | ||
|