diff --git a/tests/pty_closed.rs b/tests/pty_closed.rs index 10faed0..8544cb5 100644 --- a/tests/pty_closed.rs +++ b/tests/pty_closed.rs @@ -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");