From ec7e81e6ae526d21748da2d0c58f791ac34b1bfa Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Wed, 11 Feb 2026 02:32:10 +0900 Subject: [PATCH] Add regression test for coreutils --list (#10858) --- tests/test_util_name.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/test_util_name.rs b/tests/test_util_name.rs index 745e6814b..17b9dc36e 100644 --- a/tests/test_util_name.rs +++ b/tests/test_util_name.rs @@ -235,3 +235,17 @@ fn test_musl_no_dynamic_deps() { stdout ); } + +#[test] +fn test_sorted_utils() { + let s = TestScenario::new("list_sorted"); + let out = String::from_utf8( + std::process::Command::new(&s.bin_path) + .arg("--list") + .output() + .unwrap() + .stdout, + ) + .unwrap(); + assert!(out.lines().filter(|s| !s.is_empty()).is_sorted()); +}