From 3d5bcda86b9be12b876e87bdf7920b27018e719c Mon Sep 17 00:00:00 2001 From: Bluemangoo Date: Fri, 1 Aug 2025 16:58:01 +0800 Subject: [PATCH] pkill: add test for `--queue` --- tests/by-util/test_pkill.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/by-util/test_pkill.rs b/tests/by-util/test_pkill.rs index 4828e90..54a4c17 100644 --- a/tests/by-util/test_pkill.rs +++ b/tests/by-util/test_pkill.rs @@ -74,3 +74,9 @@ fn test_too_long_pattern() { .code_is(1) .stderr_contains("pattern that searches for process name longer than 15 characters will result in zero matches"); } + +#[test] +#[cfg(target_os = "linux")] +fn test_invalid_queue() { + new_ucmd!().args(&["-q"]).fails().code_is(1); +}