Skip to content

Remove unused in test #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/libproc/file_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,14 @@ mod test {
use crate::libproc::file_info::{ListFDs, ProcFDType};
use crate::libproc::net_info::{SocketFDInfo, SocketInfoKind};
use crate::libproc::proc_pid::{listpidinfo, pidinfo};

use std::process;
use super::pidfdinfo;

#[test]
#[allow(clippy::cast_possible_wrap)]
fn pidfdinfo_test() {
use std::net::TcpListener;
use std::process;
let pid = process::id() as i32;

let _listener = TcpListener::bind("127.0.0.1:65535");

let info = pidinfo::<BSDInfo>(pid, 0).expect("pidinfo() failed");
let fds =
listpidinfo::<ListFDs>(pid, info.pbi_nfiles as usize).expect("listpidinfo() failed");
Expand Down
Loading