2
0
Fork 0
mirror of https://github.com/uutils/coreutils synced 2024-12-24 03:53:16 +00:00
coreutils/test/true.rs
2015-05-09 15:17:16 -04:00

9 lines
212 B
Rust

use std::process::Command;
static PROGNAME: &'static str = "./true";
#[test]
fn test_exit_code() {
let exit_status = Command::new(PROGNAME).status().unwrap().success();
assert_eq!(exit_status, true);
}