Use needs-unwind
instead of ignoring WASM/emscripten
This commit is contained in:
parent
b678e9221a
commit
79c06fc595
@ -1,8 +1,6 @@
|
||||
// run-pass
|
||||
// edition:2021
|
||||
|
||||
// ignore-wasm no panic or subprocess support
|
||||
// ignore-emscripten no panic or subprocess support
|
||||
// needs-unwind
|
||||
#![feature(closure_track_caller)]
|
||||
|
||||
use std::future::Future;
|
||||
@ -73,6 +71,6 @@ fn panicked_at(f: impl FnOnce() + panic::UnwindSafe) -> u32 {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
assert_eq!(panicked_at(|| block_on(foo())), 43);
|
||||
assert_eq!(panicked_at(|| block_on(foo_track_caller())), 56);
|
||||
assert_eq!(panicked_at(|| block_on(foo())), 41);
|
||||
assert_eq!(panicked_at(|| block_on(foo_track_caller())), 54);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user