mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 17:58:06 +00:00
11 lines
426 B
Rust
11 lines
426 B
Rust
use crate::common::util::*;
|
|
|
|
// FIXME: this depends on the system having true and false in PATH
|
|
// the best solution is probably to generate some test binaries that we can call for any
|
|
// utility that requires executing another program (kill, for instance)
|
|
#[test]
|
|
fn test_subcommand_return_code() {
|
|
new_ucmd!().arg("1").arg("true").succeeds();
|
|
|
|
new_ucmd!().arg("1").arg("false").run().status_code(1);
|
|
}
|