diff options
| author | Pádraig Brady <P@draigBrady.com> | 2025-01-15 01:36:13 +0000 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2025-01-15 17:07:19 +0000 |
| commit | 868cd727dfa873f6b369d29876faa48a02aabe3b (patch) | |
| tree | 1b597b4dff56275c06a1d2a3d26d1deef2a6c442 | |
| parent | tests: avoid slow ulimit -v behavior (diff) | |
| download | coreutils-868cd727dfa873f6b369d29876faa48a02aabe3b.tar.gz coreutils-868cd727dfa873f6b369d29876faa48a02aabe3b.zip | |
tests: printf: avoid false failure
* tests/printf/printf-surprise.sh: Increase the VM limit
to avoid false failures in rare cases.
| -rwxr-xr-x | tests/printf/printf-surprise.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/printf/printf-surprise.sh b/tests/printf/printf-surprise.sh index d314c2d3f..9ad42a8dc 100755 --- a/tests/printf/printf-surprise.sh +++ b/tests/printf/printf-surprise.sh @@ -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. |
