Results for builtin-bracket.test.sh

statusoshosh_.pyosh_.cc
pass 443433
FAIL 01011
total444444
caseoshosh_.pyosh_.ccdescription
0pass pass pass zero args: [ ]
1pass pass pass one arg: [ x ] where x is one of '=' '!' '(' ']'
2pass pass pass one arg: empty string is false. Equivalent to -n.
3pass pass pass -a as unary operator (alias of -e)
4pass pass pass two args: -z with = ! ( ]
5pass pass pass three args
6pass pass pass four args
7pass pass pass test with extra args is syntax error
8pass pass pass ] syntax errors
9pass pass pass -n
10pass pass pass ! -a
11pass pass pass -o
12pass pass pass ( )
13pass pass pass ( ) ! -a -o with system version of [
14pass pass pass == is alias for =
15pass pass pass == and = does not do glob
16pass pass pass [ with op variable
17pass pass pass [ with unquoted empty var
18pass pass pass [ compare with literal -f
19pass pass pass [ '(' foo ] is runtime syntax error
20pass pass pass -z '>' implies two token lookahead
21pass pass pass operator/operand ambiguity with ]
22pass pass pass operator/operand ambiguity with -a
23pass pass pass -d
24pass FAIL FAIL -x
detailsdetails
25pass FAIL FAIL -r
detailsdetails
26pass FAIL FAIL -w
detailsdetails
27pass pass pass -k for sticky bit
28pass FAIL FAIL -h and -L test for symlink
detailsdetails
29pass pass pass -t 1 for stdout
30pass pass pass [ -t invalid ]
31pass FAIL FAIL -ot and -nt
detailsdetails
32pass pass pass [ a -eq b ]
33pass FAIL FAIL test -s
detailsdetails
34pass pass pass test -b -c -S (block, character, socket)
35pass FAIL FAIL test -p named pipe
detailsdetails
36pass FAIL FAIL -G and -O for effective user ID and group ID
detailsdetails
37pass FAIL FAIL -u for setuid, -g too
detailsdetails
38pass pass pass -v to test variable
39pass pass pass test -o for options
40pass pass pass -nt -ot
41pass FAIL FAIL -ef
detailsdetails
42pass pass FAIL Overflow error
details
43pass pass pass Bug regression
111 passed, 0 OK, 0 not implemented, 0 BUG, 21 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py24 -x

[osh_.py stdout] Expected 'no\nyes\nbad\n', got 'no\nbad\n'

stdout:
no
bad
stderr:
  echo 'echo hi' > $TMP/x
                 ^
[ stdin ]:2: Can't open '/x': Permission denied
chmod: cannot access '/x': No such file or directory
osh_.cc24 -x

[osh_.cc stdout] Expected 'no\nyes\nbad\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.py25 -r

[osh_.py stdout] Expected 'yes\nno\n', got 'no\n'

stdout:
no
stderr:
  echo '1' > $TMP/testr_yes
           ^
[ stdin ]:1: Can't open '/testr_yes': Permission denied
  echo '2' > $TMP/testr_no
           ^
[ stdin ]:2: Can't open '/testr_no': Permission denied
chmod: cannot access '/testr_no': No such file or directory
osh_.cc25 -r

[osh_.cc stdout] Expected 'yes\nno\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.py26 -w

[osh_.py stdout] Expected 'yes\nno\n', got 'no\n'

stdout:
no
stderr:
  echo '1' > $TMP/testw_yes
           ^
[ stdin ]:2: Can't open '/testw_yes': Permission denied
  echo '2' > $TMP/testw_no
           ^
[ stdin ]:3: Can't open '/testw_no': Permission denied
chmod: cannot access '/testw_no': No such file or directory
osh_.cc26 -w

[osh_.cc stdout] Expected 'yes\nno\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.py28 -h and -L test for symlink

[osh_.py stdout] Expected 'no\nno\nis-file\nsymlink\nsymlink\ndangling\ndangling\ndangling is not file\n', got 'no\nno\ndangling is not file\n'

stdout:
no
no
dangling is not file
stderr:
mkdir: cannot create directory '/builtin-test-1': Permission denied
touch: cannot touch '/builtin-test-1/zz': No such file or directory
ln: failed to create symbolic link '/builtin-test-1/symlink': No such file or directory
ln: failed to create symbolic link '/builtin-test-1/dangling': No such file or directory
osh_.cc28 -h and -L test for symlink

[osh_.cc stdout] Expected 'no\nno\nis-file\nsymlink\nsymlink\ndangling\ndangling\ndangling is not file\n', got 'no\nno\ndangling is not file\n'

stdout:
no
no
dangling is not file
stderr:
mkdir: cannot create directory '/builtin-test-1': Permission denied
touch: cannot touch '/builtin-test-1/zz': No such file or directory
ln: failed to create symbolic link '/builtin-test-1/symlink': No such file or directory
ln: failed to create symbolic link '/builtin-test-1/dangling': No such file or directory
osh_.py31 -ot and -nt

[osh_.py stdout] Expected 'older\nnot newer\nnot older than itself\nnot newer than itself\n', got 'not newer\nnot older than itself\nnot newer than itself\n'

stdout:
not newer
not older than itself
not newer than itself
stderr:
touch: cannot touch '/x': Permission denied
  touch -d 2018/01/01 > $TMP/y
                      ^
[ stdin ]:2: Can't open '/y': Permission denied
osh_.cc31 -ot and -nt

[osh_.cc stdout] Expected 'older\nnot newer\nnot older than itself\nnot newer than itself\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
touch: cannot touch '/x': Permission denied
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.py33 test -s

[osh_.py stdout] Expected 'status=1\nstatus=1\nstatus=0\n', got 'status=1\nstatus=1\nstatus=1\n'

stdout:
status=1
status=1
status=1
stderr:
touch: cannot touch '/empty': Permission denied
  echo nonempty > $TMP/nonempty
                ^
[ stdin ]:6: Can't open '/nonempty': Permission denied
osh_.cc33 test -s

[osh_.cc stdout] Expected 'status=1\nstatus=1\nstatus=0\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
touch: cannot touch '/empty': Permission denied
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh_.py35 test -p named pipe

[osh_.py stdout] Expected 'status=0\nstatus=1\n', got 'status=1\nstatus=1\n'

stdout:
status=1
status=1
stderr:
  mkfifo $TMP/fifo
  ^~~~~~
[ stdin ]:1: 'mkfifo' not found
osh_.cc35 test -p named pipe

[osh_.cc stdout] Expected 'status=0\nstatus=1\n', got 'status=1\nstatus=1\n'

stdout:
status=1
status=1
stderr:
  mkfifo $TMP/fifo
  ^~~~~~
[ stdin ]:1: 'mkfifo' not found
osh_.py36 -G and -O for effective user ID and group ID

[osh_.py stdout] Expected 'status=0\nstatus=1\nstatus=0\nstatus=1\n', got 'status=1\nstatus=1\nstatus=1\nstatus=1\n'

stdout:
status=1
status=1
status=1
status=1
stderr:
osh_.cc36 -G and -O for effective user ID and group ID

[osh_.cc stdout] Expected 'status=0\nstatus=1\nstatus=0\nstatus=1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/osh_bool_stat.h:37: bool bool_stat::DoUnaryOp(id_kind_asdl::Id_t, Str *): Assertion `0' failed.
osh_.py37 -u for setuid, -g too

[osh_.py stdout] Expected 'status=1\nstatus=0\nstatus=1\nstatus=1\n', got 'status=1\nstatus=0\nstatus=1\nstatus=0\n'

stdout:
status=1
status=0
status=1
status=0
stderr:
osh_.cc37 -u for setuid, -g too

[osh_.cc stdout] Expected 'status=1\nstatus=0\nstatus=1\nstatus=1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/osh_bool_stat.h:37: bool bool_stat::DoUnaryOp(id_kind_asdl::Id_t, Str *): Assertion `0' failed.
osh_.py41 -ef

[osh_.py stdout] Expected 'same\nsame\ndifferent\ndifferent\n', got 'different\ndifferent\n'

stdout:
different
different
stderr:
touch: cannot touch '/left': Permission denied
touch: cannot touch '/right': Permission denied
ln: failed to access '/left': No such file or directory
osh_.cc41 -ef

[osh_.cc stdout] Expected 'same\nsame\ndifferent\ndifferent\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
touch: cannot touch '/left': Permission denied
touch: cannot touch '/right': Permission denied
ln: failed to access '/left': No such file or directory
osh_eval.dbg: cpp/osh_bool_stat.h:63: bool bool_stat::DoBinaryOp(id_kind_asdl::Id_t, Str *, Str *): Assertion `0' failed.
osh_.cc42 Overflow error

[osh_.cc stdout] Expected 'status=2\n', got 'status=1\n'

stdout:
status=1
stderr: