mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-18 17:56:54 +02:00
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.
This commit is contained in:
@@ -22,7 +22,7 @@ prog=printf
|
||||
print_ver_ printf
|
||||
|
||||
vm=$(get_min_ulimit_v_ env $prog %20f 0) \
|
||||
|| skip_ "this shell lacks ulimit support"
|
||||
|| skip_ 'shell lacks ulimit, or ASAN enabled'
|
||||
|
||||
# Up to coreutils-6.9, "printf %.Nf 0" would encounter an ENOMEM internal
|
||||
# error from glibc's printf(3) function whenever N was large relative to
|
||||
|
||||
Reference in New Issue
Block a user