Skip to content

Commit

Permalink
Ignore macos in more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
grouzen committed Oct 1, 2024
1 parent 41e0920 commit 958a458
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/processes_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::{thread, time::Duration};
use pik::processes::{FilterOptions, ProcessManager};

#[test]
#[cfg(not(target_os = "macos"))]
fn should_find_cargo_process_by_cmd_name() {
let mut process_manager = ProcessManager::new().unwrap();
let results = process_manager.find_processes("cargo", FilterOptions::default());
Expand All @@ -22,6 +23,7 @@ fn should_find_cargo_process_by_cmd_path() {
}

#[test]
#[cfg(not(target_os = "macos"))]
fn should_find_cargo_process_by_name_path_or_args() {
let mut process_manager = ProcessManager::new().unwrap();
let results = process_manager.find_processes("~cargo", FilterOptions::default());
Expand All @@ -34,6 +36,7 @@ fn should_find_cargo_process_by_name_path_or_args() {
}

#[test]
#[cfg(not(target_os = "macos"))]
fn should_find_cargo_process_by_args() {
let mut process_manager = ProcessManager::new().unwrap();
let results = process_manager.find_processes("-test", FilterOptions::default());
Expand Down

0 comments on commit 958a458

Please sign in to comment.