mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tty: should not return 2 when --help is used
This is impacting gnu/tests/misc/usage_vs_getopt.sh
This commit is contained in:
parent
a219d9e355
commit
cf722d7f0c
2 changed files with 7 additions and 4 deletions
|
@ -64,6 +64,11 @@ fn test_wrong_argument() {
|
|||
new_ucmd!().args(&["a"]).fails().code_is(2);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_help() {
|
||||
new_ucmd!().args(&["--help"]).succeeds();
|
||||
}
|
||||
|
||||
#[test]
|
||||
// FixME: freebsd panic
|
||||
#[cfg(all(unix, not(target_os = "freebsd")))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue