mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tests/util: Do not trim stderr in CmdResult::stderr_is. Add method stderr_trimmed_is.
Fix tests assert whitespace instead of trimming it. Disable some tests in `test_tr` because `tr` produces too many newlines.
This commit is contained in:
parent
7c0ed0340b
commit
1fadeb43b2
40 changed files with 229 additions and 211 deletions
|
@ -854,7 +854,7 @@ fn test_od_invalid_bytes() {
|
|||
.fails()
|
||||
.code_is(1)
|
||||
.stderr_only(format!(
|
||||
"od: invalid {} argument '{}'",
|
||||
"od: invalid {} argument '{}'\n",
|
||||
option, INVALID_SIZE
|
||||
));
|
||||
|
||||
|
@ -864,7 +864,7 @@ fn test_od_invalid_bytes() {
|
|||
.fails()
|
||||
.code_is(1)
|
||||
.stderr_only(format!(
|
||||
"od: invalid suffix in {} argument '{}'",
|
||||
"od: invalid suffix in {} argument '{}'\n",
|
||||
option, INVALID_SUFFIX
|
||||
));
|
||||
|
||||
|
@ -874,6 +874,9 @@ fn test_od_invalid_bytes() {
|
|||
.arg("file")
|
||||
.fails()
|
||||
.code_is(1)
|
||||
.stderr_only(format!("od: {} argument '{}' too large", option, BIG_SIZE));
|
||||
.stderr_only(format!(
|
||||
"od: {} argument '{}' too large\n",
|
||||
option, BIG_SIZE
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue