Rollup merge of #122422 - Enselic:only-unix, r=oli-obk
compiletest: Allow `only-unix` in test headers The header `ignore-unix` is already allowed. Also extend tests. This is needed by https://github.com/rust-lang/rust/pull/121573 which I am splitting up into smaller and more digestible PRs.
This commit is contained in:
commit
fa98724d02
@ -852,6 +852,7 @@ pub fn line_directive<'line>(
|
||||
"only-sparc64",
|
||||
"only-stable",
|
||||
"only-thumb",
|
||||
"only-unix",
|
||||
"only-wasm32",
|
||||
"only-wasm32-bare",
|
||||
"only-windows",
|
||||
|
@ -285,6 +285,7 @@ fn ignore_target() {
|
||||
assert!(check_ignore(&config, "//@ ignore-x86_64-unknown-linux-gnu"));
|
||||
assert!(check_ignore(&config, "//@ ignore-x86_64"));
|
||||
assert!(check_ignore(&config, "//@ ignore-linux"));
|
||||
assert!(check_ignore(&config, "//@ ignore-unix"));
|
||||
assert!(check_ignore(&config, "//@ ignore-gnu"));
|
||||
assert!(check_ignore(&config, "//@ ignore-64bit"));
|
||||
|
||||
@ -300,6 +301,7 @@ fn only_target() {
|
||||
|
||||
assert!(check_ignore(&config, "//@ only-x86"));
|
||||
assert!(check_ignore(&config, "//@ only-linux"));
|
||||
assert!(check_ignore(&config, "//@ only-unix"));
|
||||
assert!(check_ignore(&config, "//@ only-msvc"));
|
||||
assert!(check_ignore(&config, "//@ only-32bit"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user