coreutils/test/false.rs

10 lines
214 B
Rust
Raw Normal View History

2015-05-09 19:17:16 +00:00
use std::process::Command;
static PROGNAME: &'static str = "./false";
#[test]
fn test_exit_code() {
let exit_status = Command::new(PROGNAME).status().unwrap().success();
assert_eq!(exit_status, false);
}