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

split: fixing test for 32bit

This commit is contained in:
zhitkoff 2023-09-06 21:04:01 -04:00
parent 8883f016d4
commit 3f065eed8a

View file

@ -657,19 +657,17 @@ fn test_split_overflow_bytes_size() {
} }
#[test] #[test]
#[cfg(target_pointer_width = "32")]
fn test_split_chunks_num_chunks_oversized_32() { fn test_split_chunks_num_chunks_oversized_32() {
#[cfg(target_pointer_width = "32")] let scene = TestScenario::new(util_name!());
{ let at = &scene.fixtures;
let scene = TestScenario::new(util_name!()); at.touch("file");
let at = &scene.fixtures; scene
at.touch("file"); .ucmd()
scene .args(&["--number", "5000000000", "sixhundredfiftyonebytes.txt"])
.ucmd() .fails()
.args(&["--number", "5000000000", "file"]) .code_is(1)
.fails() .stderr_only("split: Number of chunks too big\n");
.code_is(1)
.stderr_only("split: Number of chunks too big\n");
}
} }
#[test] #[test]