mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
kill: add test for vertical --list
This commit is contained in:
parent
c4c81291b7
commit
d56c7bbaee
1 changed files with 10 additions and 0 deletions
|
@ -92,6 +92,16 @@ fn test_kill_list_one_signal_from_name() {
|
|||
.stdout_matches(&Regex::new("\\b9\\b").unwrap());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_kill_list_all_vertically() {
|
||||
// Check for a few signals. Do not try to be comprehensive.
|
||||
let command = new_ucmd!().arg("-l").succeeds();
|
||||
let signals = command.stdout_str().split('\n').collect::<Vec<&str>>();
|
||||
assert!(signals.contains(&"KILL"));
|
||||
assert!(signals.contains(&"TERM"));
|
||||
assert!(signals.contains(&"HUP"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_kill_list_two_signal_from_name() {
|
||||
new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue