Skip to content

Commit

Permalink
Use needs-unwind instead of ignoring WASM/emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
bryangarza committed Nov 15, 2022
1 parent b678e92 commit 79c06fc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/test/ui/async-await/track-caller/panic-track-caller.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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);
}

0 comments on commit 79c06fc

Please sign in to comment.