Skip to content

Commit 042a8b9

Browse files
authored
Unrolled build for #141640
Rollup merge of #141640 - Fabian-Gruenbichler:mr/test-version-check-rpath-false, r=jieyouxu test: convert version_check ui test to run-make else it breaks with `rpath=false`. Fixes: #141579
2 parents c583fa6 + dd148a0 commit 042a8b9

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

tests/run-make/version-check/rmake.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use run_make_support::bare_rustc;
2+
3+
fn main() {
4+
let signalled_version = "Ceci n'est pas une rustc";
5+
let rustc_out = bare_rustc()
6+
.env("RUSTC_OVERRIDE_VERSION_STRING", signalled_version)
7+
.arg("--version")
8+
.run()
9+
.stdout_utf8();
10+
11+
let version = rustc_out.strip_prefix("rustc ").unwrap().trim_end();
12+
assert_eq!(version, signalled_version);
13+
}

tests/ui/feature-gates/version_check.rs

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)