Skip to content

Commit c4c36ea

Browse files
committed
no-op pty closed tests on non-Linux
The functions called in the libc crate don't exist outside of Linux.
1 parent 85ae008 commit c4c36ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/pty_closed.rs

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ mod unix {
1818
unsafe { File::from_raw_fd(fd) }
1919
}
2020

21+
#[cfg(all(unix, target_os = "linux"))]
2122
#[test]
2223
fn log_after_pty_close() {
2324
let pt = wrap_fd(unsafe { libc::getpt() }, "getpt");

0 commit comments

Comments
 (0)