about summary refs log tree commit diff
path: root/t/limits.t
blob: 8692a2ec2de48eb972f3fa7da7f92079218aa999 (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"x8000, "\n" for 1..42' |
	xe -N0 -s 'echo $#'
>>>
16
16
10
EOF