1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-18 01:18:51 +02:00

tests: printf: avoid false failure

* tests/printf/printf-surprise.sh: Increase the VM limit
to avoid false failures in rare cases.
This commit is contained in:
Pádraig Brady
2025-01-15 01:36:13 +00:00
parent 61d4935802
commit 868cd727df
+2 -1
View File
@@ -61,7 +61,8 @@ cleanup_() { kill $pid 2>/dev/null && wait $pid; }
head -c 10 fifo > out & pid=$!
# Trigger large mem allocation failure
( trap '' PIPE && ulimit -v $vm && env $prog %20000000f 0 2>err-msg > fifo )
( trap '' PIPE && ulimit -v $(($vm+4000)) &&
env $prog %20000000f 0 2>err-msg > fifo )
exit=$?
# Map this longer, and rarer, diagnostic to the common one.