From fa72ab029ddfcd050f79824bdbea95f77d8f1f60 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 4 Sep 2026 20:01:15 +0000 Subject: Make the memfail.sh script work without seq FossilOrigin-Name: acf55b125d707a4b1cd6f0abce66b286c1b814db407390821d4a3cf013186222 --- tests/scripts/memfail.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3