Codebase list xe / fresh-snapshots/main t / limits.t
fresh-snapshots/main

Tree @fresh-snapshots/main (Download .tar.gz)

limits.t @fresh-snapshots/mainraw · history · blame

#!/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