mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
fix windows test
This commit is contained in:
parent
67acfbcbf3
commit
c1d2362f1d
1 changed files with 6 additions and 1 deletions
|
@ -107,12 +107,17 @@ macro_rules! test_digest {
|
||||||
at.write("a", "file1\n");
|
at.write("a", "file1\n");
|
||||||
at.write("c", "file3\n");
|
at.write("c", "file3\n");
|
||||||
|
|
||||||
|
#[cfg(unix)]
|
||||||
|
let file_not_found_str = "No such file or directory";
|
||||||
|
#[cfg(not(unix))]
|
||||||
|
let file_not_found_str = "The system cannot find the file specified";
|
||||||
|
|
||||||
ts.ucmd()
|
ts.ucmd()
|
||||||
.args(&[DIGEST_ARG, BITS_ARG, "a", "b", "c"])
|
.args(&[DIGEST_ARG, BITS_ARG, "a", "b", "c"])
|
||||||
.fails()
|
.fails()
|
||||||
.stdout_contains("a\n")
|
.stdout_contains("a\n")
|
||||||
.stdout_contains("c\n")
|
.stdout_contains("c\n")
|
||||||
.stderr_contains("b: No such file or directory");
|
.stderr_contains(format!("b: {file_not_found_str}"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)*)
|
)*)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue