diff options
Diffstat (limited to 'test/test_pty.rs')
-rw-r--r-- | test/test_pty.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_pty.rs b/test/test_pty.rs index ab347bb0..3b654443 100644 --- a/test/test_pty.rs +++ b/test/test_pty.rs @@ -255,7 +255,9 @@ fn test_forkpty() { let string = "naninani\n"; let echoed_string = "naninani\r\n"; - let pty = forkpty(None, None).unwrap(); + let pty = unsafe { + forkpty(None, None).unwrap() + }; match pty.fork_result { Child => { write(STDOUT_FILENO, string.as_bytes()).unwrap(); |