1 #![expect(unsafe_op_in_unsafe_fn, reason = "old code, not worth updating yet")] 2 test_stdio_not_isatty()3unsafe fn test_stdio_not_isatty() { 4 assert_eq!(libc::isatty(libc::STDIN_FILENO), 0, "stdin is not a tty"); 5 assert_eq!(libc::isatty(libc::STDOUT_FILENO), 0, "stdout is not a tty"); 6 assert_eq!(libc::isatty(libc::STDERR_FILENO), 0, "stderr is not a tty"); 7 } 8 main()9fn main() { 10 // Run the tests. 11 unsafe { test_stdio_not_isatty() } 12 } 13