Skip to content

Commit

Permalink
Remove test_process test
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Nov 29, 2023
1 parent 26fb857 commit 96ffca3
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,6 @@

use sysinfo::{Pid, ProcessRefreshKind, System, UpdateKind};

#[test]
fn test_process() {
let mut s = System::new();
assert_eq!(s.processes().len(), 0);
s.refresh_processes();
if !sysinfo::IS_SUPPORTED || cfg!(feature = "apple-sandbox") {
return;
}
assert!(!s.processes().is_empty());
assert!(s
.processes()
.values()
.all(|p| p.root().as_os_str().is_empty()));

let mut s = System::new();
s.refresh_processes_specifics(ProcessRefreshKind::new().with_root(UpdateKind::Always));
assert!(s
.processes()
.values()
.any(|p| !p.root().as_os_str().is_empty()));
}

#[test]
fn test_cwd() {
if !sysinfo::IS_SUPPORTED || cfg!(feature = "apple-sandbox") {
Expand Down

0 comments on commit 96ffca3

Please sign in to comment.