mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27: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
|
@ -1,6 +1,11 @@
|
|||
// spell-checker:ignore dont
|
||||
use crate::common::util::*;
|
||||
|
||||
#[test]
|
||||
fn test_invalid_arg() {
|
||||
new_ucmd!().arg("--definitely-invalid").fails().code_is(125);
|
||||
}
|
||||
|
||||
// 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue