rust/src/test/ui/cfg
Dylan DPC 577f1d007d
Rollup merge of #84734 - tmandry:compiletest-needs-unwind, r=Mark-Simulacrum
Add `needs-unwind` and beginning of support for testing `panic=abort` std to compiletest

For the Fuchsia platform we build libstd with `panic=abort` and would like a way to run tests with that enabled. This adds low-level support for this directly to compiletest.

In the future I'd like to add high-level support in rustbuild, e.g. having target-specific flags that allow configuring a panic strategy. (Side note: It would be nice if we could also build multiple configurations for the same target, but I'm getting ahead of myself.)

This plus #84500 have everything that's needed to get ui tests passing on fuchsia targets.

Part of #84766. Note that this change only includes the header on tests which need an unwinder to _build_, not those which need it to _run_.

r? ````@Mark-Simulacrum````
2021-05-07 00:38:37 +02:00
..
assume-incomplete-release Add tests 2021-01-29 07:59:19 +01:00
auxiliary tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cfg-attr-cfg.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cfg-attr-crate.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cfg-family.rs Set target_family="wasm" for wasm targets 2021-05-03 00:32:44 +03:00
cfg-in-crate-1.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cfg-macros-foo.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cfg-macros-notfoo.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cfg-match-arm.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cfg-panic-abort.rs Add #[cfg(panic = "...")] 2020-11-09 15:30:49 +00:00
cfg-panic.rs Add needs-unwind to tests 2021-05-06 02:49:34 +00:00
cfg-target-family.rs Set target_family="wasm" for wasm targets 2021-05-03 00:32:44 +03:00
cfg-target-vendor.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cfg_attr.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cfg_inner_static.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cfg_stmt_expr.rs syntax: Support modern attribute syntax in the meta matcher 2019-09-30 22:58:22 +03:00
cfgs-on-items.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
conditional-compile-arch.rs test: ui: skip tests which aren't appropriate for RISC-V 2020-06-04 15:59:59 +01:00
conditional-compile.rs Update tests for extern block linting 2021-01-13 07:49:16 -05:00
crate-attributes-using-cfg_attr.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00