1
Fork 0
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:
Sylvestre Ledru 2022-04-04 22:55:36 +02:00
parent a219d9e355
commit cf722d7f0c
2 changed files with 7 additions and 4 deletions

View file

@ -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")))]