File tree 4 files changed +6
-1
lines changed
4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change
1
+ // Disabling in Miri as these would take too long.
2
+ #![ cfg( not( miri) ) ]
1
3
#![ feature( test) ]
2
4
3
5
extern crate test;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ use std::str;
8
8
mod common;
9
9
10
10
#[ test]
11
+ #[ cfg_attr( miri, ignore) ] // Process spawning not supported by Miri
11
12
fn issue_15149 ( ) {
12
13
// If we're the parent, copy our own binary to a new directory.
13
14
let my_path = env:: current_exe ( ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ fn switch_stdout_to(file: OwnedHandle) -> OwnedHandle {
51
51
}
52
52
53
53
#[ test]
54
+ #[ cfg_attr( miri, ignore) ] // dup/SetStdHandle not supported by Miri
54
55
fn switch_stdout ( ) {
55
56
let temp = common:: tmpdir ( ) ;
56
57
let path = temp. join ( "switch-stdout-output" ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ use std::time::Duration;
5
5
6
6
#[ test]
7
7
#[ 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 ( ) {
9
10
let finished = Arc :: new ( Mutex :: new ( false ) ) ;
10
11
let t_finished = finished. clone ( ) ;
11
12
thread:: spawn ( move || {
You can’t perform that action at this time.
0 commit comments