diff options
| author | Pádraig Brady <P@draigBrady.com> | 2024-01-17 23:49:52 +0000 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2024-01-17 23:59:49 +0000 |
| commit | aa50ea55ea68aa5f5475bf46357bcf5febcde1bb (patch) | |
| tree | 660b73405a492c01ef53e74b3d0532293ced51f1 /tests/split | |
| parent | split: do not shrink hold buffer (diff) | |
| download | coreutils-aa50ea55ea68aa5f5475bf46357bcf5febcde1bb.tar.gz coreutils-aa50ea55ea68aa5f5475bf46357bcf5febcde1bb.zip | |
tests: make ulimit -v interact better with ASAN
ulimit -v is generally not supported with ASAN, giving errors like:
"ReserveShadowMemoryRange failed while trying to map 0x... bytes.
Perhaps you're using ulimit -v"
* tests/cp/link-heap.sh: Mention ASAN as a possible reason for skipping.
* tests/csplit/csplit-heap.sh: Likewise.
* tests/cut/cut-huge-range.sh: Likewise.
* tests/dd/no-allocate.sh: Likewise.
* tests/printf/printf-surprise.sh: Likewise.
* tests/rm/many-dir-entries-vs-OOM.sh: Likewise.
* tests/head/head-c.sh: Only skip the part of the test needing ulimit.
* tests/split/line-bytes.sh: Likewise.
Diffstat (limited to 'tests/split')
| -rwxr-xr-x | tests/split/line-bytes.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/split/line-bytes.sh b/tests/split/line-bytes.sh index 3f30bd8a5..6c57ad1a1 100755 --- a/tests/split/line-bytes.sh +++ b/tests/split/line-bytes.sh @@ -19,11 +19,11 @@ . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ split -vm=$(get_min_ulimit_v_ split -C 'K' /dev/null) \ - || skip_ "this shell lacks ulimit support" - # Ensure memory is not allocated up front -(ulimit -v $vm && split -C 'G' /dev/null) || fail=1 + +vm=$(get_min_ulimit_v_ split -C 'K' /dev/null) && { + (ulimit -v $vm && split -C 'G' /dev/null) || fail=1 +} # Ensure correct operation with various split and buffer size combinations |
