coreutils/tests/test_false.rs

14 lines
260 B
Rust
Raw Normal View History

use common::util::*;
static UTIL_NAME: &'static str = "false";
fn new_ucmd() -> UCommand {
TestScenario::new(UTIL_NAME).ucmd()
}
#[test]
fn test_exit_code() {
let exit_status = new_ucmd()
.run().success;
assert_eq!(exit_status, false);
}