Skip to content

Commit 1172e71

Browse files
committed
Remove duplicated test
1 parent 25aecd2 commit 1172e71

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/libproc/proc_pid.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -564,26 +564,6 @@ pub fn listpidinfo<T: ListPIDInfo>(pid : i32, max_len: usize) -> Result<Vec<T::I
564564
}
565565
}
566566

567-
#[test]
568-
fn listpidinfo_test() {
569-
use std::process;
570-
let pid = process::id() as i32;
571-
572-
match pidinfo::<TaskAllInfo>(pid, 0) {
573-
Ok(info) => {
574-
match listpidinfo::<ListThreads>(pid, info.ptinfo.pti_threadnum as usize) {
575-
Ok(threads) => assert!(threads.len()>0),
576-
Err(err) => assert!(false, "Error retrieving process info: {}", err)
577-
}
578-
match listpidinfo::<ListFDs>(pid, info.pbsd.pbi_nfiles as usize) {
579-
Ok(fds) => assert!(fds.len()>0),
580-
Err(err) => assert!(false, "Error retrieving process info: {}", err)
581-
}
582-
},
583-
Err(err) => assert!(false, "Error retrieving process info: {}", err)
584-
};
585-
}
586-
587567
pub struct ListThreads;
588568

589569
impl ListPIDInfo for ListThreads {

0 commit comments

Comments
 (0)