1 2 3 4 5 6 7 8 9 10 11 12 13
extern crate pty_shell; use self::pty_shell::*; #[test] fn it_can_spawn() { let child = tty::Fork::from_ptmx().unwrap(); restore_termios(); child.exec("pwd").unwrap(); assert!(child.wait().is_ok()); }