Skip to content

Commit 70b560d

Browse files
committed
disable a test with a thread leak in Miri
1 parent 31fa4b3 commit 70b560d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/std/tests/thread.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ use std::time::Duration;
55

66
#[test]
77
#[cfg_attr(target_os = "emscripten", ignore)]
8-
fn sleep() {
8+
#[cfg_attr(miri, ignore)] // Miri does not like the thread leak
9+
fn sleep_very_long() {
910
let finished = Arc::new(Mutex::new(false));
1011
let t_finished = finished.clone();
1112
thread::spawn(move || {

0 commit comments

Comments
 (0)