From 61290fd6e878f97257cdc2c2ff217284acc1b087 Mon Sep 17 00:00:00 2001 From: tommi Date: Sun, 5 Jan 2025 10:32:08 +0100 Subject: [PATCH] tests/cksum: test added to check that the --check and --tag flags are meaningless --- tests/by-util/test_cksum.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/by-util/test_cksum.rs b/tests/by-util/test_cksum.rs index c213c4a82..b7c11320e 100644 --- a/tests/by-util/test_cksum.rs +++ b/tests/by-util/test_cksum.rs @@ -748,6 +748,19 @@ fn test_conflicting_options() { "cksum: the --binary and --text options are meaningless when verifying checksums", ) .code_is(1); + + scene + .ucmd() + .arg("--tag") + .arg("-c") + .arg("-a") + .arg("md5") + .fails() + .no_stdout() + .stderr_contains( + "cksum: the --binary and --text options are meaningless when verifying checksums", + ) + .code_is(1); } #[test]