mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tr: fix intermittent test caused by pipe_in()
This commit is contained in:
@@ -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.",
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user