diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/scripts/memfail.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/scripts/memfail.sh b/tests/scripts/memfail.sh index 3909ab8..c0076d1 100755 --- a/tests/scripts/memfail.sh +++ b/tests/scripts/memfail.sh @@ -4,10 +4,13 @@ set -e export APLWC_ALLOC_FAIL_AFTER=-1 N=$($1 3>&1 1>/dev/null 2>/dev/null) +n=0 -for n in $(seq 0 $N) +while [ "$n" -le "$N" ] do echo $n out of $N export APLWC_ALLOC_FAIL_AFTER=$n $1 1>/dev/null 2>/dev/null + + n=$((n + 1)) done |