diff --git a/tests/by-util/test_chmod.rs b/tests/by-util/test_chmod.rs index c8348d491..1b0b7131b 100644 --- a/tests/by-util/test_chmod.rs +++ b/tests/by-util/test_chmod.rs @@ -541,7 +541,7 @@ fn test_no_operands() { .arg("777") .fails() .code_is(1) - .stderr_is("chmod: missing operand"); + .usage_error("missing operand"); } #[test]