will_wake tests fail on Miri and that is expected

This commit is contained in:
Ralf Jung 2024-03-05 09:33:55 +01:00
parent 5a1e5449c8
commit 960dd38abe

View file

@ -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;