mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tr: fix intermittent test caused by pipe_in()
This commit is contained in:
parent
3871c14190
commit
9995c637aa
1 changed files with 1 additions and 5 deletions
|
@ -1151,11 +1151,7 @@ fn check_against_gnu_tr_tests_no_abort_1() {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_delete_flag_takes_only_one_operand() {
|
fn test_delete_flag_takes_only_one_operand() {
|
||||||
// gnu tr -d fails with more than 1 argument
|
// gnu tr -d fails with more than 1 argument
|
||||||
new_ucmd!()
|
new_ucmd!().args(&["-d", "a", "p"]).fails().stderr_contains(
|
||||||
.args(&["-d", "a", "p"])
|
|
||||||
.pipe_in("abc")
|
|
||||||
.fails()
|
|
||||||
.stderr_contains(
|
|
||||||
"extra operand 'p'\nOnly one string may be given when deleting without squeezing repeats.",
|
"extra operand 'p'\nOnly one string may be given when deleting without squeezing repeats.",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue