mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
all: add tests for usage error exit code
This commit is contained in:
parent
975a1d170d
commit
9177cb7b24
74 changed files with 371 additions and 0 deletions
|
@ -24,6 +24,11 @@ static ALPHA_OUT: &str = "
|
|||
// XXX We could do a better job of ensuring that we have a fresh temp dir to ourselves,
|
||||
// not a general one full of other process leftovers.
|
||||
|
||||
#[test]
|
||||
fn test_invalid_arg() {
|
||||
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
|
||||
}
|
||||
|
||||
// Test that od can read one file and dump with default format
|
||||
#[test]
|
||||
fn test_file() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue