We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae6cd50 commit c5928e0Copy full SHA for c5928e0
src/libproc/file_info.rs
@@ -181,18 +181,14 @@ mod test {
181
use crate::libproc::file_info::{ListFDs, ProcFDType};
182
use crate::libproc::net_info::{SocketFDInfo, SocketInfoKind};
183
use crate::libproc::proc_pid::{listpidinfo, pidinfo};
184
-
+ use std::process;
185
use super::pidfdinfo;
186
187
#[test]
188
#[allow(clippy::cast_possible_wrap)]
189
fn pidfdinfo_test() {
190
- use std::net::TcpListener;
191
- use std::process;
192
let pid = process::id() as i32;
193
194
- let _listener = TcpListener::bind("127.0.0.1:65535");
195
196
let info = pidinfo::<BSDInfo>(pid, 0).expect("pidinfo() failed");
197
let fds =
198
listpidinfo::<ListFDs>(pid, info.pbi_nfiles as usize).expect("listpidinfo() failed");
0 commit comments