From 6096767442f14f5f5e83a296087d06b04a0b81d2 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Thu, 9 Jan 2025 15:20:22 +0100 Subject: [PATCH] csplit: simplify test --- tests/by-util/test_csplit.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/by-util/test_csplit.rs b/tests/by-util/test_csplit.rs index 38f5c97bfaf..e062b6d551f 100644 --- a/tests/by-util/test_csplit.rs +++ b/tests/by-util/test_csplit.rs @@ -1376,8 +1376,8 @@ fn zero_error() { #[test] fn no_such_file() { - let (_, mut ucmd) = at_and_ucmd!(); - ucmd.args(&["in", "0"]) + new_ucmd!() + .args(&["in", "0"]) .fails() .stderr_contains("cannot open 'in' for reading: No such file or directory"); }