From 9995c637aa5de190ddce0abc4be36d773797f1bc Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Thu, 8 Feb 2024 07:22:39 +0100 Subject: [PATCH] tr: fix intermittent test caused by pipe_in() --- tests/by-util/test_tr.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/by-util/test_tr.rs b/tests/by-util/test_tr.rs index e9bb4da0e..4f4b00c13 100644 --- a/tests/by-util/test_tr.rs +++ b/tests/by-util/test_tr.rs @@ -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.", ); }