Skip to content

Commit 960dd38

Browse files
committed
will_wake tests fail on Miri and that is expected
1 parent 5a1e544 commit 960dd38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/alloc/tests/task.rs

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use alloc::task::{LocalWake, Wake};
44
use core::task::{LocalWaker, Waker};
55

66
#[test]
7+
#[cfg_attr(miri, should_panic)] // `will_wake` doesn't guarantee that this test will work, and indeed on Miri it fails
78
fn test_waker_will_wake_clone() {
89
struct NoopWaker;
910

@@ -19,6 +20,7 @@ fn test_waker_will_wake_clone() {
1920
}
2021

2122
#[test]
23+
#[cfg_attr(miri, should_panic)] // `will_wake` doesn't guarantee that this test will work, and indeed on Miri it fails
2224
fn test_local_waker_will_wake_clone() {
2325
struct NoopWaker;
2426

0 commit comments

Comments
 (0)