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:
parent
8883f016d4
commit
3f065eed8a
1 changed files with 10 additions and 12 deletions
|
@ -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 scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
at.touch("file");
|
at.touch("file");
|
||||||
scene
|
scene
|
||||||
.ucmd()
|
.ucmd()
|
||||||
.args(&["--number", "5000000000", "file"])
|
.args(&["--number", "5000000000", "sixhundredfiftyonebytes.txt"])
|
||||||
.fails()
|
.fails()
|
||||||
.code_is(1)
|
.code_is(1)
|
||||||
.stderr_only("split: Number of chunks too big\n");
|
.stderr_only("split: Number of chunks too big\n");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue