From c4c36ead05f145a68fd62b606662f86ec35b74cb Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Wed, 31 Jan 2024 08:15:22 -0600 Subject: [PATCH] no-op pty closed tests on non-Linux The functions called in the libc crate don't exist outside of Linux. --- tests/pty_closed.rs | 1 + 1 file changed, 1 insertion(+) 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");