From 4834b3187d10eeeaafd5a6e5c9d95755cd3341a1 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Sat, 30 May 2026 15:13:06 +0200 Subject: [PATCH] dircolors: improve test by ensuring stderr output --- tests/by-util/test_dircolors.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/by-util/test_dircolors.rs b/tests/by-util/test_dircolors.rs index dd98e5d43..89d18b24a 100644 --- a/tests/by-util/test_dircolors.rs +++ b/tests/by-util/test_dircolors.rs @@ -148,7 +148,9 @@ fn test_overridable_args() { #[test] fn test_no_env() { // no SHELL and TERM - new_ucmd!().fails(); + new_ucmd!() + .fails() + .stderr_only("dircolors: no SHELL environment variable, and no shell type option given\n"); } #[test]