blob: c0076d1499fab7c9a9009bd257fcfba26ce2e1bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
set -e
export APLWC_ALLOC_FAIL_AFTER=-1
N=$($1 3>&1 1>/dev/null 2>/dev/null)
n=0
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
|