Results for var-op-len.test.sh

statusoshosh_.pyosh_.cc
pass 855
FAIL 033
total888
caseoshosh_.pyosh_.ccdescription
0pass pass pass String length
1pass pass pass Unicode string length (UTF-8)
2pass FAIL FAIL Unicode string length (spec/testdata/utf8-chars.txt)
detailsdetails
3pass FAIL FAIL String length with incomplete utf-8
detailsdetails
4pass FAIL FAIL String length with invalid utf-8 continuation bytes
detailsdetails
5pass pass pass Length of undefined variable
6pass pass pass Length of undefined variable with nounset
7pass pass pass Length operator can't be followed by test operator
18 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py2 Unicode string length (spec/testdata/utf8-chars.txt)

[osh_.py stdout] Expected '7\n', got '0\n'

stdout:
0
stderr:
osh_.cc2 Unicode string length (spec/testdata/utf8-chars.txt)

[osh_.cc stdout] Expected '7\n', got '0\n'

stdout:
0
stderr:
osh_.py3 String length with incomplete utf-8

[osh_.py stdout] Expected '0\n1\n2\n-1\n3\n4\n-1\n-1\n5\n6\n-1\n-1\n-1\n7\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n', got "0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n(cmd_value.Argv argv:[grep 'warning:' '/err.txt'] arg_spids:[65 67 71])\n"

stdout:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
(cmd_value.Argv argv:[grep 'warning:' '/err.txt'] arg_spids:[65 67 71])
stderr:
Unhandled SimpleCommand
osh_.cc3 String length with incomplete utf-8

[osh_.cc stdout] Expected '0\n1\n2\n-1\n3\n4\n-1\n-1\n5\n6\n-1\n-1\n-1\n7\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n[ stdin ]:3: warning: Incomplete UTF-8 character\n', got "0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n(cmd_value.Argv argv:[grep 'warning:' '/err.txt'] arg_spids:[65 67 71])\n"

stdout:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
(cmd_value.Argv argv:[grep 'warning:' '/err.txt'] arg_spids:[65 67 71])
stderr:
Unhandled SimpleCommand
osh_.py4 String length with invalid utf-8 continuation bytes

[osh_.py stdout] Expected '-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n', got "0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n(cmd_value.Argv argv:[grep 'warning:' '/err.txt'] arg_spids:[77 79 83])\n"

stdout:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
(cmd_value.Argv argv:[grep 'warning:' '/err.txt'] arg_spids:[77 79 83])
stderr:
Unhandled SimpleCommand
osh_.cc4 String length with invalid utf-8 continuation bytes

[osh_.cc stdout] Expected '-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n-1\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid UTF-8 continuation byte\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n[ stdin ]:3: warning: Invalid start of UTF-8 character\n', got "0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n0\n(cmd_value.Argv argv:[grep 'warning:' '/err.txt'] arg_spids:[77 79 83])\n"

stdout:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
(cmd_value.Argv argv:[grep 'warning:' '/err.txt'] arg_spids:[77 79 83])
stderr:
Unhandled SimpleCommand