head: remove old test that we know support it

This commit is contained in:
Sylvestre Ledru 2025-08-09 09:59:51 +02:00
parent 98224ed0cf
commit faf3f7e526

View file

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