From 74a5938acf4ed096c8c05a75bfd5c6b41765095d Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Tue, 24 May 2022 15:32:01 +0200 Subject: [PATCH] dircolors: test for correct error for -bp and -cp --- tests/by-util/test_dircolors.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/by-util/test_dircolors.rs b/tests/by-util/test_dircolors.rs index fac4161f3..edbc83bbb 100644 --- a/tests/by-util/test_dircolors.rs +++ b/tests/by-util/test_dircolors.rs @@ -87,7 +87,14 @@ fn test_no_env() { #[test] fn test_exclusive_option() { - new_ucmd!().arg("-cp").fails(); + new_ucmd!() + .arg("-bp") + .fails() + .stderr_contains("mutually exclusive"); + new_ucmd!() + .arg("-cp") + .fails() + .stderr_contains("mutually exclusive"); } fn test_helper(file_name: &str, term: &str) {