diff options
Diffstat (limited to 'test/test_pty.rs')
-rw-r--r-- | test/test_pty.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_pty.rs b/test/test_pty.rs index 8528caf7..53e94724 100644 --- a/test/test_pty.rs +++ b/test/test_pty.rs @@ -139,7 +139,8 @@ fn test_openpty_with_termios() { close(pty.slave).unwrap(); termios }; - termios.c_oflag &= !ONLCR; + // Make sure newlines are not transformed so the data is preserved when sent. + termios.output_flags.remove(ONLCR); let pty = openpty(None, &termios).unwrap(); // Must be valid file descriptors |