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]