1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

tr: fix intermittent test caused by pipe_in()

This commit is contained in:
Daniel Hofstetter 2024-02-08 07:22:39 +01:00
parent 3871c14190
commit 9995c637aa

View file

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