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

This commit is contained in:
Satyam1Vishwakarma
2023-10-30 11:51:39 +01:00
committed by GitHub
parent cc86fef9c0
commit d8a4a5f24b
12 changed files with 46 additions and 0 deletions
+1
View File
@@ -36,6 +36,7 @@ async fn pause_time_in_main_threads() {
tokio::time::pause();
}
#[cfg(panic = "unwind")]
#[cfg(all(feature = "full", not(target_os = "wasi")))] // Wasi doesn't support threads
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
async fn pause_time_in_spawn_threads() {