diff --git a/gix-prompt/Cargo.toml b/gix-prompt/Cargo.toml index ed8dfcddd5d..4de04fd8e66 100644 --- a/gix-prompt/Cargo.toml +++ b/gix-prompt/Cargo.toml @@ -27,4 +27,6 @@ parking_lot = "0.12.1" [dev-dependencies] gix-testtools = { path = "../tests/tools" } serial_test = { version = "3.1.0", default-features = false } + +[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))'.dev-dependencies] expectrl = "0.7.0" diff --git a/gix-prompt/tests/prompt.rs b/gix-prompt/tests/prompt.rs index 3853162e1ef..7f90e3b3885 100644 --- a/gix-prompt/tests/prompt.rs +++ b/gix-prompt/tests/prompt.rs @@ -34,7 +34,7 @@ mod ask { } #[test] - #[cfg(unix)] + #[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))] fn askpass_only() { let mut cmd = std::process::Command::new(env!("CARGO")); cmd.args(["build", "--example", "use-askpass", "--example", "askpass"]); @@ -48,7 +48,7 @@ mod ask { } #[test] - #[cfg(unix)] + #[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))] fn username_password() { let mut cmd = std::process::Command::new(env!("CARGO")); cmd.args(["build", "--example", "credentials"]); @@ -65,7 +65,7 @@ mod ask { } #[test] - #[cfg(not(unix))] + #[cfg(not(any(target_os = "linux", target_os = "freebsd", target_os = "macos")))] #[ignore] fn username_password_not_available() {} }