about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBryan Garza <1396101+bryangarza@users.noreply.github.com>2022-11-15 01:07:18 +0000
committerBryan Garza <1396101+bryangarza@users.noreply.github.com>2022-11-15 01:08:40 +0000
commit79c06fc595261a118cea2e5440ed98fbf5659a99 (patch)
tree8c0c16a4982282b2d494168fca2b6281497743a5
parentb678e9221a57dcdb7cf959af4e83c0579622349d (diff)
downloadrust-79c06fc595261a118cea2e5440ed98fbf5659a99.tar.gz
rust-79c06fc595261a118cea2e5440ed98fbf5659a99.zip
Use `needs-unwind` instead of ignoring WASM/emscripten
-rw-r--r--src/test/ui/async-await/track-caller/panic-track-caller.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/test/ui/async-await/track-caller/panic-track-caller.rs b/src/test/ui/async-await/track-caller/panic-track-caller.rs
index 5884a1b4a8c..b113c56412f 100644
--- a/src/test/ui/async-await/track-caller/panic-track-caller.rs
+++ b/src/test/ui/async-await/track-caller/panic-track-caller.rs
@@ -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);
 }