Skip to content

Commit e1a8ecf

Browse files
committed
Add needs-unwind to tests
1 parent 568d9c5 commit e1a8ecf

9 files changed

+9
-1
lines changed

src/test/ui/cfg/cfg-panic.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// build-pass
22
// compile-flags: -C panic=unwind
3+
// needs-unwind
34
// ignore-emscripten no panic_unwind implementation
45
// ignore-wasm32 no panic_unwind implementation
56
// ignore-wasm64 no panic_unwind implementation

src/test/ui/panic-handler/weak-lang-item.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// aux-build:weak-lang-items.rs
22
// error-pattern: `#[panic_handler]` function required, but not found
33
// error-pattern: language item required, but not found: `eh_personality`
4+
// needs-unwind since it affects the error output
45
// ignore-emscripten compiled with panic=abort, personality not required
56

67
#![no_std]

src/test/ui/panic-handler/weak-lang-item.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0259]: the name `core` is defined multiple times
2-
--> $DIR/weak-lang-item.rs:8:1
2+
--> $DIR/weak-lang-item.rs:9:1
33
|
44
LL | extern crate core;
55
| ^^^^^^^^^^^^^^^^^^ `core` reimported here

src/test/ui/panic-runtime/abort-link-to-unwind-dylib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// build-fail
22
// compile-flags:-C panic=abort -C prefer-dynamic
3+
// needs-unwind
34
// ignore-musl - no dylibs here
45
// ignore-emscripten
56
// ignore-sgx no dynamic lib support

src/test/ui/panic-runtime/lto-unwind.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![allow(unused_variables)]
33

44
// compile-flags:-C lto -C panic=unwind
5+
// needs-unwind
56
// no-prefer-dynamic
67
// ignore-emscripten no processes
78
// ignore-sgx no processes

src/test/ui/panic-runtime/transitive-link-a-bunch.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// build-fail
2+
// needs-unwind
23
// aux-build:panic-runtime-unwind.rs
34
// aux-build:panic-runtime-abort.rs
45
// aux-build:wants-panic-runtime-unwind.rs

src/test/ui/panic-runtime/want-unwind-got-abort.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// build-fail
2+
// needs-unwind
23
// error-pattern:is incompatible with this crate's strategy of `unwind`
34
// aux-build:panic-runtime-abort.rs
45
// aux-build:panic-runtime-lang-items.rs

src/test/ui/panic-runtime/want-unwind-got-abort2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// build-fail
2+
// needs-unwind
23
// error-pattern:is incompatible with this crate's strategy of `unwind`
34
// aux-build:panic-runtime-abort.rs
45
// aux-build:wants-panic-runtime-abort.rs

src/test/ui/unwind-no-uwtable.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
// needs-unwind
23
// ignore-windows target requires uwtable
34
// ignore-wasm32-bare no proper panic=unwind support
45
// compile-flags: -C panic=unwind -C force-unwind-tables=n

0 commit comments

Comments
 (0)