File: cmd.rs

package info (click to toggle)
rust-ptyprocess 0.4.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 260 kB
  • sloc: makefile: 4
file content (11 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
use ptyprocess::PtyProcess;
use std::{io, process::Command};

#[test]
fn empty() {
    let err = PtyProcess::spawn(Command::new("")).unwrap_err();
    assert_eq!(
        io::ErrorKind::NotFound,
        io::Error::from_raw_os_error(err as i32).kind()
    );
}