Skip to content

Commit 32d3104

Browse files
committed
ignore will_wake tests in Miri, their result is not fully predictable
1 parent 9a233bb commit 32d3104

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/tests/task.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +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
7+
#[cfg_attr(miri, ignore)] // `will_wake` doesn't guarantee that this test will work, and indeed on Miri it can fail
88
fn test_waker_will_wake_clone() {
99
struct NoopWaker;
1010

@@ -20,7 +20,7 @@ fn test_waker_will_wake_clone() {
2020
}
2121

2222
#[test]
23-
#[cfg_attr(miri, should_panic)] // `will_wake` doesn't guarantee that this test will work, and indeed on Miri it fails
23+
#[cfg_attr(miri, ignore)] // `will_wake` doesn't guarantee that this test will work, and indeed on Miri it can fail
2424
fn test_local_waker_will_wake_clone() {
2525
struct NoopWaker;
2626

0 commit comments

Comments
 (0)