From 5bd00eb79169bec2d41f8f01bc06863df43ccddf Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 26 Jan 2024 10:09:28 +0100 Subject: [PATCH] cut: split test function into two functions --- tests/by-util/test_cut.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/by-util/test_cut.rs b/tests/by-util/test_cut.rs index 57e6666d3..cdda057ad 100644 --- a/tests/by-util/test_cut.rs +++ b/tests/by-util/test_cut.rs @@ -212,7 +212,7 @@ fn test_zero_terminated_only_delimited() { } #[test] -fn test_directory_and_no_such_file() { +fn test_is_a_directory() { let (at, mut ucmd) = at_and_ucmd!(); at.mkdir("some"); @@ -221,7 +221,10 @@ fn test_directory_and_no_such_file() { .arg("some") .run() .stderr_is("cut: some: Is a directory\n"); +} +#[test] +fn test_no_such_file() { new_ucmd!() .arg("-b1") .arg("some")