Skip to content

Commit

Permalink
no-op pty closed tests on non-Linux
Browse files Browse the repository at this point in the history
The functions called in the libc crate don't exist outside of Linux.
  • Loading branch information
cardoe committed Jan 31, 2024
1 parent 85ae008 commit c4c36ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/pty_closed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mod unix {
unsafe { File::from_raw_fd(fd) }
}

#[cfg(all(unix, target_os = "linux"))]
#[test]
fn log_after_pty_close() {
let pt = wrap_fd(unsafe { libc::getpt() }, "getpt");
Expand Down

0 comments on commit c4c36ea

Please sign in to comment.