1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

test(cksum): remove duplicate testcase

This commit is contained in:
Dorian Péron 2024-11-17 12:06:37 +01:00
parent a3b7403550
commit 20dfe2dc10

View file

@ -1251,33 +1251,6 @@ fn test_several_files_error_mgmt() {
.stderr_contains("incorrect: no properly ");
}
#[cfg(target_os = "linux")]
#[test]
fn test_non_utf8_filename() {
use std::ffi::OsString;
use std::os::unix::ffi::OsStringExt;
let scene = TestScenario::new(util_name!());
let at = &scene.fixtures;
let filename: OsString = OsStringExt::from_vec(b"funky\xffname".to_vec());
at.touch(&filename);
scene
.ucmd()
.arg(&filename)
.succeeds()
.stdout_is_bytes(b"4294967295 0 funky\xffname\n")
.no_stderr();
scene
.ucmd()
.arg("-asha256")
.arg(filename)
.succeeds()
.stdout_is_bytes(b"SHA256 (funky\xffname) = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\n")
.no_stderr();
}
#[test]
fn test_check_comment_line() {
// A comment in a checksum file shall be discarded unnoticed.
@ -1458,7 +1431,6 @@ mod check_utf8 {
.no_stderr();
}
#[cfg(target_os = "linux")]
#[test]
fn test_check_non_utf8_filename() {
use std::{ffi::OsString, os::unix::ffi::OsStringExt};