mirror of https://github.com/rust-lang/rust.git
Add needs-unwind annotations to tests that need stack unwinding
This commit is contained in:
parent
7b99493492
commit
8a08514dbd
|
@ -2,6 +2,7 @@
|
||||||
// detected then -Zincremental-verify-ich will trigger an assertion.
|
// detected then -Zincremental-verify-ich will trigger an assertion.
|
||||||
|
|
||||||
// ignore-wasm32-bare compiled with panic=abort by default
|
// ignore-wasm32-bare compiled with panic=abort by default
|
||||||
|
// needs-unwind
|
||||||
// revisions:cfail1 cfail2
|
// revisions:cfail1 cfail2
|
||||||
// compile-flags: -Z query-dep-graph -Cpanic=unwind
|
// compile-flags: -Z query-dep-graph -Cpanic=unwind
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// build-pass (FIXME(62277): could be check-pass?)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// revisions: rfail1 rfail2
|
// revisions: rfail1 rfail2
|
||||||
// failure-status: 101
|
// failure-status: 101
|
||||||
// error-pattern: not implemented
|
// error-pattern: not implemented
|
||||||
|
// needs-unwind -Cpanic=abort causes abort instead of exit(101)
|
||||||
|
|
||||||
pub trait Interner {
|
pub trait Interner {
|
||||||
type InternedVariableKinds;
|
type InternedVariableKinds;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# ignore-cross-compile
|
# ignore-cross-compile
|
||||||
|
# needs-unwind
|
||||||
include ../tools.mk
|
include ../tools.mk
|
||||||
|
|
||||||
all: archive
|
all: archive
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# ignore-cross-compile
|
# ignore-cross-compile
|
||||||
|
# needs-unwind
|
||||||
include ../tools.mk
|
include ../tools.mk
|
||||||
|
|
||||||
all: $(call NATIVE_STATICLIB,add)
|
all: $(call NATIVE_STATICLIB,add)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# needs-unwind -Cpanic=abort gives different MIR output
|
||||||
include ../tools.mk
|
include ../tools.mk
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# ignore-cross-compile
|
# ignore-cross-compile
|
||||||
|
# needs-unwind
|
||||||
include ../tools.mk
|
include ../tools.mk
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# ignore-cross-compile
|
# ignore-cross-compile
|
||||||
|
# needs-unwind
|
||||||
include ../tools.mk
|
include ../tools.mk
|
||||||
|
|
||||||
all: foo
|
all: foo
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# ignore-cross-compile
|
# ignore-cross-compile
|
||||||
|
# needs-unwind
|
||||||
include ../tools.mk
|
include ../tools.mk
|
||||||
|
|
||||||
all: foo
|
all: foo
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# ignore-cross-compile
|
# ignore-cross-compile
|
||||||
# ignore-i686-pc-windows-gnu
|
# ignore-i686-pc-windows-gnu
|
||||||
|
# needs-unwind
|
||||||
|
|
||||||
# This test doesn't work on 32-bit MinGW as cdylib has its own copy of unwinder
|
# This test doesn't work on 32-bit MinGW as cdylib has its own copy of unwinder
|
||||||
# so cross-DLL unwinding does not work.
|
# so cross-DLL unwinding does not work.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# ignore-cross-compile
|
# ignore-cross-compile
|
||||||
|
# needs-unwind
|
||||||
include ../tools.mk
|
include ../tools.mk
|
||||||
|
|
||||||
# Test expected libtest's JSON output
|
# Test expected libtest's JSON output
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# ignore-cross-compile
|
# ignore-cross-compile
|
||||||
|
# needs-unwind
|
||||||
include ../tools.mk
|
include ../tools.mk
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
include ../tools.mk
|
include ../tools.mk
|
||||||
|
|
||||||
# ignore-cross-compile
|
# ignore-cross-compile
|
||||||
|
# needs-unwind #[bench] and -Zpanic-abort-tests can't be combined
|
||||||
|
|
||||||
all:
|
all:
|
||||||
# Smoke-test that `#[bench]` isn't entirely broken.
|
# Smoke-test that `#[bench]` isn't entirely broken.
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
// check-run-results
|
// check-run-results
|
||||||
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||||
// ignore-emscripten no threads support
|
// ignore-emscripten no threads support
|
||||||
|
// needs-unwind
|
||||||
// run-pass
|
// run-pass
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue