From 5ae195b99a26b8e6e95a20f0dfd046040772784a Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 11 Aug 2025 22:26:10 +0200 Subject: [PATCH] Update tests/by-util/test_pathchk.rs Co-authored-by: Daniel Hofstetter --- tests/by-util/test_pathchk.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/by-util/test_pathchk.rs b/tests/by-util/test_pathchk.rs index d0197d9bf..85f5c09ea 100644 --- a/tests/by-util/test_pathchk.rs +++ b/tests/by-util/test_pathchk.rs @@ -170,13 +170,6 @@ fn test_posix_all() { #[test] #[cfg(target_os = "linux")] fn test_pathchk_non_utf8_paths() { - use uutests::at_and_ucmd; - - let (at, mut ucmd) = at_and_ucmd!(); let filename = std::ffi::OsString::from_vec(vec![0xFF, 0xFE]); - - // Create the file so pathchk can check it exists - std::fs::write(at.plus(&filename), b"test").unwrap(); - - ucmd.arg(&filename).succeeds(); + new_ucmd!().arg(&filename).succeeds(); }