From ce14b165b77bc912f4d40cf62d7767d7f54c0f24 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 8 Feb 2025 14:41:42 +0100 Subject: [PATCH] remove duplicate test --- tests/test_util_name.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/test_util_name.rs b/tests/test_util_name.rs index 53bdee68e1..d7aef3775d 100644 --- a/tests/test_util_name.rs +++ b/tests/test_util_name.rs @@ -23,25 +23,6 @@ fn execution_phrase_double() { .contains(&format!("Usage: {} ls", scenario.bin_path.display(),))); } -#[test] -#[cfg(feature = "ls")] -#[cfg(any(unix, windows))] -fn execution_phrase_single() { - use std::process::Command; - - let scenario = TestScenario::new("ls"); - symlink_file(&scenario.bin_path, scenario.fixtures.plus("uu-ls")).unwrap(); - let output = Command::new(scenario.fixtures.plus("uu-ls")) - .arg("--some-invalid-arg") - .output() - .unwrap(); - dbg!(String::from_utf8(output.stderr.clone()).unwrap()); - assert!(String::from_utf8(output.stderr).unwrap().contains(&format!( - "Usage: {}", - scenario.fixtures.plus("uu-ls").display() - ))); -} - #[test] #[cfg(feature = "sort")] fn util_name_double() {