Results for builtin-bracket.test.sh

statusoshosh_.pyosh_.cc
pass 444432
FAIL 0012
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 FAIL -d
details
24pass pass FAIL -x
details
25pass pass FAIL -r
details
26pass pass FAIL -w
details
27pass pass pass -k for sticky bit
28pass pass FAIL -h and -L test for symlink
details
29pass pass pass -t 1 for stdout
30pass pass pass [ -t invalid ]
31pass pass FAIL -ot and -nt
details
32pass pass pass [ a -eq b ]
33pass pass FAIL test -s
details
34pass pass pass test -b -c -S (block, character, socket)
35pass pass FAIL test -p named pipe
details
36pass pass FAIL -G and -O for effective user ID and group ID
details
37pass pass FAIL -u for setuid, -g too
details
38pass pass pass -v to test variable
39pass pass pass test -o for options
40pass pass pass -nt -ot
41pass pass FAIL -ef
details
42pass pass FAIL Overflow error
details
43pass pass pass Bug regression
120 passed, 0 OK, 0 not implemented, 0 BUG, 12 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.cc23 -d

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

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

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

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

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

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

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

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
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 ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/osh_bool_stat.h:37: bool bool_stat::DoUnaryOp(id_kind_asdl::Id_t, Str*): Assertion `0' failed.
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: 
osh_eval.opt: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
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: 
osh_eval.opt: cpp/osh_bool_stat.h:37: bool bool_stat::DoUnaryOp(id_kind_asdl::Id_t, Str*): Assertion `0' failed.
osh_.cc35 test -p named pipe

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

stdout:
stderr: 
mkfifo: cannot create fifo '/home/build/oil/_tmp/spec-tmp/builtin-bracket.test.sh/fifo': File exists
osh_eval.opt: cpp/osh_bool_stat.h:37: bool bool_stat::DoUnaryOp(id_kind_asdl::Id_t, Str*): Assertion `0' failed.
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.opt: cpp/osh_bool_stat.h:37: bool bool_stat::DoUnaryOp(id_kind_asdl::Id_t, Str*): Assertion `0' failed.
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.opt: cpp/osh_bool_stat.h:37: bool bool_stat::DoUnaryOp(id_kind_asdl::Id_t, Str*): Assertion `0' failed.
osh_.cc41 -ef

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

stdout:
stderr: 
osh_eval.opt: 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:
dumb_alloc:
	gNumNew = 1892
	gNumDelete = 143
	gMemPos = 64928

	gNumMalloc = 148
	gNumFree = 0
	gMemPos2 = 10800