Merge pull request #5957 from cakebaker/tr_fix_intermittent_test

tr: fix intermittent test caused by pipe_in()
This commit is contained in:
Sylvestre Ledru 2024-02-08 08:50:12 +01:00 committed by GitHub
commit dd64bae278
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.",
);
}