From faf3f7e526222208f06cb63e44cc6470e191c94e Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 9 Aug 2025 09:59:51 +0200 Subject: [PATCH] head: remove old test that we know support it --- src/uu/head/src/head.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/uu/head/src/head.rs b/src/uu/head/src/head.rs index 7c543b157..db88f3f64 100644 --- a/src/uu/head/src/head.rs +++ b/src/uu/head/src/head.rs @@ -693,15 +693,6 @@ mod tests { assert_eq!(arg_outputs("head"), Ok("head".to_owned())); } - #[test] - #[cfg(target_os = "linux")] - fn test_arg_iterate_bad_encoding() { - use std::os::unix::ffi::OsStringExt; - let invalid = OsString::from_vec(vec![b'\x80', b'\x81']); - // this arises from a conversion from OsString to &str - assert!(arg_iterate(vec![OsString::from("head"), invalid].into_iter()).is_err()); - } - #[test] fn read_early_exit() { let mut empty = io::BufReader::new(Cursor::new(Vec::new()));