From aa50ea55ea68aa5f5475bf46357bcf5febcde1bb Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Wed, 17 Jan 2024 23:49:52 +0000 Subject: 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. --- tests/printf/printf-surprise.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/printf') diff --git a/tests/printf/printf-surprise.sh b/tests/printf/printf-surprise.sh index 652cb5485..d51ab0678 100755 --- a/tests/printf/printf-surprise.sh +++ b/tests/printf/printf-surprise.sh @@ -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 -- cgit v1.2.3