File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -40,4 +40,16 @@ pub fn main() {
40
40
let _t = thread:: spawn ( move || f ( tx. clone ( ) ) ) ;
41
41
println ! ( "hiiiiiiiii" ) ;
42
42
assert ! ( rx. recv( ) . unwrap( ) ) ;
43
+
44
+ #[ cfg( windows) ]
45
+ {
46
+ // Quick fix for an intermittent failure
47
+ // We don't want to exit the test till we know that the
48
+ // child has finished unwinding, because Windows blocks the
49
+ // test libraries till the thread exits
50
+ // FIXME #22628
51
+ use std:: old_io:: timer:: sleep;
52
+ use std:: time:: duration:: Duration ;
53
+ sleep ( Duration :: seconds ( 20 ) ) ;
54
+ }
43
55
}
Original file line number Diff line number Diff line change @@ -20,4 +20,16 @@ fn f() {
20
20
21
21
pub fn main ( ) {
22
22
let _t = thread:: spawn ( f) ;
23
+
24
+ #[ cfg( windows) ]
25
+ {
26
+ // Quick fix for an intermittent failure
27
+ // We don't want to exit the test till we know that the
28
+ // child has finished unwinding, because Windows blocks the
29
+ // test libraries till the thread exits
30
+ // FIXME #22628
31
+ use std:: old_io:: timer:: sleep;
32
+ use std:: time:: duration:: Duration ;
33
+ sleep ( Duration :: seconds ( 20 ) ) ;
34
+ }
23
35
}
You can’t perform that action at this time.
0 commit comments