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()));