Rollup merge of #111094 - bjorn3:fix_test_annotations, r=jyn514

Add needs-unwind annotations to tests that need stack unwinding

This allows filtering them out when running the rustc test suite for cg_clif.
This commit is contained in:
Matthias Krüger 2023-05-04 08:09:06 +02:00 committed by GitHub
commit f2bc7e0684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 13 additions and 0 deletions

View File

@ -2,6 +2,7 @@
// detected then -Zincremental-verify-ich will trigger an assertion.
// ignore-wasm32-bare compiled with panic=abort by default
// needs-unwind
// revisions:cfail1 cfail2
// compile-flags: -Z query-dep-graph -Cpanic=unwind
// build-pass (FIXME(62277): could be check-pass?)

View File

@ -1,6 +1,7 @@
// revisions: rfail1 rfail2
// failure-status: 101
// error-pattern: not implemented
// needs-unwind -Cpanic=abort causes abort instead of exit(101)
pub trait Interner {
type InternedVariableKinds;

View File

@ -1,4 +1,5 @@
# ignore-cross-compile
# needs-unwind
include ../tools.mk
all: archive

View File

@ -1,4 +1,5 @@
# ignore-cross-compile
# needs-unwind
include ../tools.mk
all: $(call NATIVE_STATICLIB,add)

View File

@ -1,3 +1,4 @@
# needs-unwind -Cpanic=abort gives different MIR output
include ../tools.mk
all:

View File

@ -1,4 +1,5 @@
# ignore-cross-compile
# needs-unwind
include ../tools.mk
all:

View File

@ -1,4 +1,5 @@
# ignore-cross-compile
# needs-unwind
include ../tools.mk
all: foo

View File

@ -1,4 +1,5 @@
# ignore-cross-compile
# needs-unwind
include ../tools.mk
all: foo

View File

@ -1,5 +1,6 @@
# ignore-cross-compile
# ignore-i686-pc-windows-gnu
# needs-unwind
# This test doesn't work on 32-bit MinGW as cdylib has its own copy of unwinder
# so cross-DLL unwinding does not work.

View File

@ -1,4 +1,5 @@
# ignore-cross-compile
# needs-unwind
include ../tools.mk
# Test expected libtest's JSON output

View File

@ -1,4 +1,5 @@
# ignore-cross-compile
# needs-unwind
include ../tools.mk
all:

View File

@ -1,6 +1,7 @@
include ../tools.mk
# ignore-cross-compile
# needs-unwind #[bench] and -Zpanic-abort-tests can't be combined
all:
# Smoke-test that `#[bench]` isn't entirely broken.

View File

@ -3,6 +3,7 @@
// check-run-results
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
// ignore-emscripten no threads support
// needs-unwind
// run-pass
#[test]