mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
kill: add test for vertical --list
This commit is contained in:
@@ -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!()
|
||||
|
||||
Reference in New Issue
Block a user