File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -644,7 +644,7 @@ mod test {
644
644
client. try_acquire ( ) . unwrap ( ) . unwrap ( ) ;
645
645
}
646
646
647
- #[ cfg( any ( windows, target_os = "linux" ) ) ]
647
+ #[ cfg( windows) ]
648
648
#[ test]
649
649
fn test_try_acquire ( ) {
650
650
let client = Client :: new ( 0 ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -612,13 +612,16 @@ mod test {
612
612
run_named_fifo_try_acquire_tests ( & new_client_from_fifo ( ) . 0 ) ;
613
613
}
614
614
615
- #[ cfg( not( target_os = "linux" ) ) ]
616
615
#[ test]
617
616
fn test_try_acquire_annoymous_pipe_linux_specific_optimization ( ) {
617
+ #[ cfg( not( target_os = "linux" ) ) ]
618
618
assert_eq ! (
619
619
new_client_from_pipe( ) . 0 . try_acquire( ) . unwrap_err( ) . kind( ) ,
620
620
io:: ErrorKind :: Unsupported
621
621
) ;
622
+
623
+ #[ cfg( target_os = "linux" ) ]
624
+ run_named_fifo_try_acquire_tests ( & new_client_from_pipe ( ) . 0 ) ;
622
625
}
623
626
624
627
#[ test]
You can’t perform that action at this time.
0 commit comments