File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 1
1
extern crate nix;
2
2
extern crate tempfile;
3
3
4
- #[ cfg( any( target_os = "linux" ,
5
- target_os = "ios" ,
6
- target_os = "macos" ,
7
- target_os = "freebsd" ,
8
- target_os = "netbsd" ) ) ]
9
- use nix:: sys:: aio:: * ;
10
- use nix:: sys:: signal:: * ;
11
- use std:: os:: unix:: io:: AsRawFd ;
12
- use tempfile:: tempfile;
13
-
14
4
// Test dropping an AioCb that hasn't yet finished.
15
5
// This must happen in its own process, because on OSX this test seems to hose
16
6
// the AIO subsystem and causes subsequent tests to fail
@@ -23,6 +13,11 @@ use tempfile::tempfile;
23
13
target_os = "freebsd" ,
24
14
target_os = "netbsd" ) ) ) ]
25
15
fn test_drop ( ) {
16
+ use nix:: sys:: aio:: * ;
17
+ use nix:: sys:: signal:: * ;
18
+ use std:: os:: unix:: io:: AsRawFd ;
19
+ use tempfile:: tempfile;
20
+
26
21
const WBUF : & [ u8 ] = b"CDEF" ;
27
22
28
23
let f = tempfile ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments