1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

cksum/hashsum: improve the tests and wording

This commit is contained in:
Sylvestre Ledru 2024-06-02 21:09:51 +02:00
parent 773d8cfbc6
commit 1cbb4d9752
5 changed files with 30 additions and 74 deletions

View file

@ -1192,15 +1192,10 @@ fn test_check_directory_error() {
"f",
"BLAKE2b (d) = 786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce\n"
);
let err_msg: &str;
#[cfg(not(windows))]
{
err_msg = "cksum: d: Is a directory\n";
}
let err_msg = "cksum: d: Is a directory\n";
#[cfg(windows)]
{
err_msg = "cksum: d: Permission denied\n";
}
let err_msg = "cksum: d: Permission denied\n";
ucmd.arg("--check")
.arg(at.subdir.join("f"))
.fails()