Skip to content
Merged
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
12 changes: 6 additions & 6 deletions src/libproc/proc_pid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ mod test {
match pidinfo::<BSDInfo>(pid, 0) {
Ok(info) => assert_eq!(info.pbi_pid as i32, pid),
Err(e) => panic!("Error retrieving BSDInfo: {}", e),
};
}
}

#[cfg(target_os = "macos")]
Expand All @@ -686,7 +686,7 @@ mod test {
match pidinfo::<TaskInfo>(pid, 0) {
Ok(info) => assert!(info.pti_virtual_size > 0),
Err(e) => panic!("Error retrieving TaskInfo: {}", e),
};
}
}

#[cfg(target_os = "macos")]
Expand All @@ -697,7 +697,7 @@ mod test {
match pidinfo::<TaskAllInfo>(pid, 0) {
Ok(info) => assert!(info.ptinfo.pti_virtual_size > 0),
Err(e) => panic!("Error retrieving TaskAllInfo: {}", e),
};
}
}

#[cfg(target_os = "macos")]
Expand All @@ -706,7 +706,7 @@ mod test {
match pidinfo::<ThreadInfo>(0, 0) {
Ok(info) => assert!(!info.pth_name.is_empty()),
Err(e) => panic!("Error retrieving ThreadInfo: {}", e),
};
}
}

#[cfg(target_os = "macos")]
Expand All @@ -715,7 +715,7 @@ mod test {
match pidinfo::<WorkQueueInfo>(1, 0) {
Ok(info) => assert!(info.pwq_nthreads > 0),
Err(e) => panic!("{}: {}", "Error retrieving WorkQueueInfo", e),
};
}
}

#[cfg(target_os = "macos")]
Expand All @@ -731,7 +731,7 @@ mod test {
}
if let Ok(fds) = listpidinfo::<ListFDs>(pid, info.pbsd.pbi_nfiles as usize) {
assert!(!fds.is_empty());
};
}
}
}

Expand Down
Loading