about summary refs log tree commit diff
path: root/t/limits.t
blob: efe519927a0a4b11d4ba39066a75857b6e8a7ce6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
export "PATH=.:$PATH"

printf '1..2\n'
printf '# limit checks, expecting maximal POSIX limits available\n'

tap3 'argscap check' <<'EOF'
dd if=/dev/zero bs=1 count=17711 2>/dev/null |
	tr "\0" "\012" |
	xe -N0 -s 'echo $#'
>>>
8187
8187
1337
EOF

tap3 'argslen check' <<'EOF'
perl -e 'print "x"x12000, "\n" for 1..23' |
	xe -N0 -s 'echo $#'
>>>
10
10
3
EOF