Skip to content

Commit

Permalink
tr: fix intermittent test caused by pipe_in()
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Feb 8, 2024
1 parent 3871c14 commit 9995c63
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/by-util/test_tr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
);
}

0 comments on commit 9995c63

Please sign in to comment.