diff options
| author | Ralf Jung <post@ralfj.de> | 2024-03-05 09:33:55 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-03-05 09:33:55 +0100 |
| commit | 960dd38abe18f7da6a08866736ba77aa8259de33 (patch) | |
| tree | fdddbeba73691885562fdccb8b62f791e3af95e4 | |
| parent | 5a1e5449c8f4cb6b12b4f64238e3c058767ebf02 (diff) | |
will_wake tests fail on Miri and that is expected
| -rw-r--r-- | library/alloc/tests/task.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/alloc/tests/task.rs b/library/alloc/tests/task.rs index 0f8d9218980..034039a1eae 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; |
