mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-25 02:45:15 +08:00
tests: avoid spurious failure when SIZE_MAX is 2^32-1
* tests/split/line-bytes.sh: Since we've limited virtual memory to 20MB, choose a smaller size, 1GiB (which is <= SIZE_MAX) rather than 1EiB, which is larger than SIZE_MAX on 32-bit systems. I confirmed that this test still fails when the split.c-modifying part of v8.21-58-gfec363c is backed out.
This commit is contained in:
parent
909a0561de
commit
5a7f03c210
@ -22,7 +22,7 @@ require_ulimit_v_
|
||||
|
||||
|
||||
# Ensure memory is not allocated up front
|
||||
(ulimit -v 20000; split -C 'E' /dev/null) || fail=1
|
||||
(ulimit -v 20000; split -C 'G' /dev/null) || fail=1
|
||||
|
||||
|
||||
# Ensure correct operation with various split and buffer size combinations
|
||||
|
Loading…
Reference in New Issue
Block a user