Skip to content

Commit ec7e81e

Browse files
authored
Add regression test for coreutils --list (#10858)
1 parent 107dc44 commit ec7e81e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_util_name.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,17 @@ fn test_musl_no_dynamic_deps() {
235235
stdout
236236
);
237237
}
238+
239+
#[test]
240+
fn test_sorted_utils() {
241+
let s = TestScenario::new("list_sorted");
242+
let out = String::from_utf8(
243+
std::process::Command::new(&s.bin_path)
244+
.arg("--list")
245+
.output()
246+
.unwrap()
247+
.stdout,
248+
)
249+
.unwrap();
250+
assert!(out.lines().filter(|s| !s.is_empty()).is_sorted());
251+
}

0 commit comments

Comments
 (0)