diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests b/tests index b02b638..5a5168a 100755 --- a/tests +++ b/tests @@ -1,5 +1,5 @@ #!/bin/sh -printf '1..38\n' +printf '1..40\n' set -e @@ -215,6 +215,15 @@ a 123 EOF +check_output 'should close stdin when arguments were read from it' 'necho a b c | $XE -s "sed q"' <<EOF +EOF + +check_output 'should not close stdin when arguments were read from command line' 'yes | $XE -a -s "sed q" -- 1 2 3' <<EOF +y +y +y +EOF + printf '# limit checks, expecting maximal POSIX limits available\n' check_output 'argscap check' 'head -c 17711 /dev/zero | tr "\0" "\012" | $XE -N0 -s "echo \$#"' <<EOF |