Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Dec 3, 2023
1 parent c87daf8 commit 3730bb1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/behavior.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
mod helpers;

// macos doesn't appear to support spawning a second process onto a pty which
// already had a process spawned onto it
#[cfg(not(target_os = "macos"))]
#[test]
fn test_multiple() {
let pty = pty_process::blocking::Pty::new().unwrap();
Expand Down Expand Up @@ -28,6 +31,9 @@ fn test_multiple() {
assert_eq!(status.code().unwrap(), 0);
}

// macos doesn't appear to support spawning a second process onto a pty which
// already had a process spawned onto it
#[cfg(not(target_os = "macos"))]
#[cfg(feature = "async")]
#[tokio::test]
async fn test_multiple_async() {
Expand Down Expand Up @@ -60,6 +66,9 @@ async fn test_multiple_async() {
assert_eq!(status.code().unwrap(), 0);
}

// macos doesn't appear to support spawning a second process onto a pty which
// already had a process spawned onto it
#[cfg(not(target_os = "macos"))]
#[test]
fn test_multiple_configured() {
use std::io::BufRead as _;
Expand Down Expand Up @@ -129,6 +138,9 @@ fn test_multiple_configured() {
assert_eq!(status.code().unwrap(), 0);
}

// macos doesn't appear to support spawning a second process onto a pty which
// already had a process spawned onto it
#[cfg(not(target_os = "macos"))]
#[cfg(feature = "async")]
#[tokio::test]
async fn test_multiple_configured_async() {
Expand Down

0 comments on commit 3730bb1

Please sign in to comment.