Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Jan 29, 2025
1 parent a5491ee commit a57ca31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/behavior.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mod helpers;

#[cfg(not(target_os = "macos"))]
#[test]
fn test_multiple() {
let (pty, pts) = pty_process::blocking::open().unwrap();
Expand Down Expand Up @@ -27,6 +28,7 @@ fn test_multiple() {
assert_eq!(status.code().unwrap(), 0);
}

#[cfg(not(target_os = "macos"))]
#[cfg(feature = "async")]
#[tokio::test]
async fn test_multiple_async() {
Expand Down Expand Up @@ -58,6 +60,7 @@ async fn test_multiple_async() {
assert_eq!(status.code().unwrap(), 0);
}

#[cfg(not(target_os = "macos"))]
#[test]
fn test_multiple_configured() {
use std::io::BufRead as _;
Expand Down Expand Up @@ -126,6 +129,7 @@ fn test_multiple_configured() {
assert_eq!(status.code().unwrap(), 0);
}

#[cfg(not(target_os = "macos"))]
#[cfg(feature = "async")]
#[tokio::test]
async fn test_multiple_configured_async() {
Expand Down Expand Up @@ -295,6 +299,7 @@ async fn test_session_leader_async() {
assert_eq!(status.code().unwrap(), 0);
}

#[cfg(not(target_os = "macos"))]
fn pipe() -> (std::os::fd::OwnedFd, std::os::fd::OwnedFd) {
nix::unistd::pipe().unwrap()
}

0 comments on commit a57ca31

Please sign in to comment.