From 960dd38abe18f7da6a08866736ba77aa8259de33 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 5 Mar 2024 09:33:55 +0100 Subject: [PATCH] will_wake tests fail on Miri and that is expected --- library/alloc/tests/task.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/alloc/tests/task.rs b/library/alloc/tests/task.rs index 0f8d9218980e9..034039a1eae9d 100644 --- a/library/alloc/tests/task.rs +++ b/library/alloc/tests/task.rs @@ -4,6 +4,7 @@ use alloc::task::{LocalWake, Wake}; use core::task::{LocalWaker, Waker}; #[test] +#[cfg_attr(miri, should_panic)] // `will_wake` doesn't guarantee that this test will work, and indeed on Miri it fails fn test_waker_will_wake_clone() { struct NoopWaker; @@ -19,6 +20,7 @@ fn test_waker_will_wake_clone() { } #[test] +#[cfg_attr(miri, should_panic)] // `will_wake` doesn't guarantee that this test will work, and indeed on Miri it fails fn test_local_waker_will_wake_clone() { struct NoopWaker;