File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ use std::path::PathBuf;
24
24
25
25
#[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
26
26
use filetime:: FileTime ;
27
- #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
28
- use rlimit:: Resource ;
29
27
#[ cfg( target_os = "linux" ) ]
30
28
use std:: ffi:: OsString ;
31
29
#[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
@@ -2120,10 +2118,11 @@ fn test_cp_reflink_insufficient_permission() {
2120
2118
. stderr_only ( "cp: 'unreadable' -> 'existing_file.txt': Permission denied (os error 13)\n " ) ;
2121
2119
}
2122
2120
2123
- #[ cfg( any ( target_os = "linux" , target_os = "android" ) ) ]
2121
+ #[ cfg( target_os = "linux" ) ]
2124
2122
#[ test]
2125
2123
fn test_closes_file_descriptors ( ) {
2126
2124
use procfs:: process:: Process ;
2125
+ use rlimit:: Resource ;
2127
2126
let me = Process :: myself ( ) . unwrap ( ) ;
2128
2127
2129
2128
// The test suite runs in parallel, we have pipe, sockets
@@ -2133,7 +2132,6 @@ fn test_closes_file_descriptors() {
2133
2132
let limit_fd: u64 = number_file_already_opened + 9 ;
2134
2133
2135
2134
// For debugging purposes:
2136
- #[ cfg( not( target_os = "android" ) ) ]
2137
2135
for f in me. fd ( ) . unwrap ( ) {
2138
2136
let fd = f. unwrap ( ) ;
2139
2137
println ! ( "{:?} {:?}" , fd, fd. mode( ) ) ;
You can’t perform that action at this time.
0 commit comments