• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/tests/rt_common.rs b/tests/rt_common.rs
2index f5dce54..abca8dd 100644
3--- a/tests/rt_common.rs
4+++ b/tests/rt_common.rs
5@@ -845,6 +845,7 @@ rt_test! {
6     }
7
8     #[cfg_attr(target_os = "wasi", ignore = "Wasi does not support threads or panic recovery")]
9+    #[cfg(panic = "unwind")]
10     #[test]
11     fn panic_in_task() {
12         let rt = rt();
13diff --git a/tests/task_abort.rs b/tests/task_abort.rs
14index 4798246..481cc96 100644
15--- a/tests/task_abort.rs
16+++ b/tests/task_abort.rs
17@@ -176,6 +176,7 @@ fn test_abort_wakes_task_3964() {
18 /// Checks that aborting a task whose destructor panics does not allow the
19 /// panic to escape the task.
20 #[test]
21+#[cfg(panic = "unwind")]
22 fn test_abort_task_that_panics_on_drop_contained() {
23     let rt = Builder::new_current_thread().enable_time().build().unwrap();
24
25@@ -199,6 +200,7 @@ fn test_abort_task_that_panics_on_drop_contained() {
26
27 /// Checks that aborting a task whose destructor panics has the expected result.
28 #[test]
29+#[cfg(panic = "unwind")]
30 fn test_abort_task_that_panics_on_drop_returned() {
31     let rt = Builder::new_current_thread().enable_time().build().unwrap();
32
33diff --git a/tests/task_blocking.rs b/tests/task_blocking.rs
34index 62e20f6..4594498 100644
35--- a/tests/task_blocking.rs
36+++ b/tests/task_blocking.rs
37@@ -114,6 +114,7 @@ fn can_enter_current_thread_rt_from_within_block_in_place() {
38 }
39
40 #[test]
41+#[cfg(panic = "unwind")]
42 fn useful_panic_message_when_dropping_rt_in_rt() {
43     use std::panic::{catch_unwind, AssertUnwindSafe};
44
45