mirror of
https://github.com/uutils/coreutils
synced 2024-12-14 15:22:38 +00:00
Merge pull request #5957 from cakebaker/tr_fix_intermittent_test
tr: fix intermittent test caused by pipe_in()
This commit is contained in:
commit
dd64bae278
1 changed files with 1 additions and 5 deletions
|
@ -1151,11 +1151,7 @@ fn check_against_gnu_tr_tests_no_abort_1() {
|
|||
#[test]
|
||||
fn test_delete_flag_takes_only_one_operand() {
|
||||
// gnu tr -d fails with more than 1 argument
|
||||
new_ucmd!()
|
||||
.args(&["-d", "a", "p"])
|
||||
.pipe_in("abc")
|
||||
.fails()
|
||||
.stderr_contains(
|
||||
new_ucmd!().args(&["-d", "a", "p"]).fails().stderr_contains(
|
||||
"extra operand 'p'\nOnly one string may be given when deleting without squeezing repeats.",
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue