diff options
-rw-r--r-- | src/utils/process.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/utils/process.rs b/src/utils/process.rs index a2984090..daefe76c 100644 --- a/src/utils/process.rs +++ b/src/utils/process.rs @@ -508,8 +508,13 @@ where match info.find_sibling_in_refreshed_processes(my_pid, &extract_args) { None => { - info.refresh_processes(); - info.find_sibling_in_refreshed_processes(my_pid, &extract_args) + #[cfg(test)] + { + info.refresh_processes(); + info.find_sibling_in_refreshed_processes(my_pid, &extract_args) + } + #[cfg(not(test))] + None } some => some, } |