coreutils/tests/test_true.rs

14 lines
258 B
Rust
Raw Normal View History

use common::util::*;
static UTIL_NAME: &'static str = "true";
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, true);
}