tokio: gate some panicking tests with #[cfg(panic = "unwind")] (#6110)

This commit is contained in:
Alice Ryhl
2023-10-26 12:28:12 +02:00
committed by GitHub
parent f3949cc56d
commit cc86fef9c0
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -114,6 +114,7 @@ fn can_enter_current_thread_rt_from_within_block_in_place() {
}
#[test]
#[cfg(panic = "unwind")]
fn useful_panic_message_when_dropping_rt_in_rt() {
use std::panic::{catch_unwind, AssertUnwindSafe};