Skip to content

Commit

Permalink
Fix check_all_process_uids_resolvable test
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Aug 13, 2023
1 parent 00a6231 commit 4e50da5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ mod test {

#[test]
fn check_all_process_uids_resolvable() {
if System::IS_SUPPORTED {
// On linux, some user IDs don't have an associated user (no idea why though).
// If `getent` doesn't find them, we can assume it's a dark secret from the linux land.
if System::IS_SUPPORTED && cfg!(not(target_os = "linux")) {
let s = System::new_with_specifics(
RefreshKind::new()
.with_processes(ProcessRefreshKind::new().with_user())
Expand Down

0 comments on commit 4e50da5

Please sign in to comment.