mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 01:38:04 +00:00
10 lines
214 B
Rust
10 lines
214 B
Rust
|
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);
|
||
|
}
|