mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
kill: accept all casings for signal names in --list
This commit is contained in:
parent
7f71611849
commit
524be6e4ae
2 changed files with 22 additions and 1 deletions
|
@ -116,6 +116,25 @@ fn test_kill_list_one_signal_from_name() {
|
|||
.stdout_matches(&Regex::new("\\b9\\b").unwrap());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_kill_list_one_signal_ignore_case() {
|
||||
// Use SIGKILL because it is 9 on all unixes.
|
||||
new_ucmd!()
|
||||
.arg("-l")
|
||||
.arg("KiLl")
|
||||
.succeeds()
|
||||
.stdout_matches(&Regex::new("\\b9\\b").unwrap());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_kill_list_unknown_must_match_input_case() {
|
||||
new_ucmd!()
|
||||
.arg("-l")
|
||||
.arg("IaMnOtAsIgNaL") // spell-checker:disable-line
|
||||
.fails()
|
||||
.stderr_contains("IaMnOtAsIgNaL"); // spell-checker:disable-line
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_kill_list_all_vertically() {
|
||||
// Check for a few signals. Do not try to be comprehensive.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue