Skip to content

Commit 3733dcc

Browse files
committed
Add needs-unwind annotations to a couple of tests
1 parent 0824b30 commit 3733dcc

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

compiler/rustc_codegen_cranelift/scripts/test_rustc_tests.sh

-6
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ rm tests/ui/parser/unclosed-delimiter-in-dep.rs # submodule contains //~ERROR
4141
# missing features
4242
# ================
4343

44-
# requires stack unwinding
45-
# FIXME add needs-unwind to these tests
46-
rm -r tests/run-make/libtest-junit
47-
rm tests/ui/asm/may_unwind.rs
48-
rm tests/ui/stable-mir-print/basic_function.rs
49-
5044
# extra warning about -Cpanic=abort for proc macros
5145
rm tests/ui/proc-macro/crt-static.rs
5246
rm tests/ui/proc-macro/proc-macro-deprecated-attr.rs

tests/run-make/libtest-junit/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# ignore-cross-compile
2+
# needs-unwind contains should_panic test
23
include ../tools.mk
34

45
# Test expected libtest's junit output

tests/ui/asm/may_unwind.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ run-pass
22
//@ needs-asm-support
3+
//@ needs-unwind
34

45
#![feature(asm_unwind)]
56

tests/ui/stable-mir-print/basic_function.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//@ compile-flags: -Z unpretty=stable-mir -Z mir-opt-level=3
22
//@ check-pass
33
//@ only-x86_64
4+
//@ needs-unwind unwind edges are different with panic=abort
45

56
fn foo(i: i32) -> i32 {
67
i + 1

0 commit comments

Comments
 (0)