spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 3 | 2 | 2 | |
FAIL | 4 | 5 | 5 | |
total | 7 | 7 | 7 | |
case | osh | osh_.py | osh_.cc | description |
0 | FAIL | FAIL | pass | : is special and prefix assignments persist after special builtins |
details | details | |||
1 | pass | FAIL | FAIL | readonly is special and prefix assignments persist |
details | details | |||
2 | pass | pass | FAIL | true is not special |
details | ||||
3 | FAIL | FAIL | FAIL | Shift is special and the whole script exits if it returns non-zero |
details | details | details | ||
4 | FAIL | FAIL | FAIL | set is special and fails, even if using || true |
details | details | details | ||
5 | FAIL | FAIL | FAIL | Special builtins can't be redefined as functions |
details | details | details | ||
6 | pass | pass | pass | Non-special builtins CAN be redefined as functions |
7 passed, 0 OK, 0 not implemented, 0 BUG, 14 failed, 0 timeouts, 0 cases skipped 4 failed under osh
osh | 0 : is special and prefix assignments persist after special builtins [osh stdout] Expected 'foo=bar\n', got 'foo=\n' stdout: foo=stderr: |
osh_.py | 0 : is special and prefix assignments persist after special builtins [osh_.py stdout] Expected 'foo=bar\n', got 'foo=\n' stdout: foo=stderr: |
osh_.py | 1 readonly is special and prefix assignments persist [osh_.py stdout] Expected 'foo=bar\nspam=eggs\nNone\nNone\n', got 'None\nNone\nfoo=bar\nspam=eggs\n' stdout: None None foo=bar spam=eggsstderr: |
osh_.cc | 1 readonly is special and prefix assignments persist [osh_.cc stdout] Expected 'foo=bar\nspam=eggs\nNone\nNone\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: mycpp/mylib.h:596: V Dict<Str *, runtime_asdl::value_t *>::index(K) [K = Str *, V = runtime_asdl::value_t *]: Assertion `0' failed. |
osh_.cc | 2 true is not special [osh_.cc stdout] Expected '\n', got 'bar\n' stdout: barstderr: |
osh | 3 Shift is special and the whole script exits if it returns non-zero [osh stdout] Expected u'', got 'status=1\n' [osh status] Expected 1, got 0 stdout: status=1stderr: |
osh_.py | 3 Shift is special and the whole script exits if it returns non-zero [osh_.py stdout] Expected u'', got 'status=1\n' [osh_.py status] Expected 1, got 0 stdout: status=1stderr: |
osh_.cc | 3 Shift is special and the whole script exits if it returns non-zero [osh_.cc stdout] Expected u'', got 'status=1\n' [osh_.cc status] Expected 1, got 0 stdout: status=1stderr: set 4 |
osh | 4 set is special and fails, even if using || true [osh stdout] Expected 'ok\n', got 'ok\nshould not get here\n' [osh status] Expected 1, got 0 stdout: ok should not get herestderr: shopt -s invalid_ || true ^~~~~ [ stdin ]:1: 'shopt' got invalid option 'invalid_' set -o invalid_ || true ^~~~~~~~ [ stdin ]:3: 'set' got invalid option 'invalid_' |
osh_.py | 4 set is special and fails, even if using || true [osh_.py stdout] Expected 'ok\n', got 'ok\nshould not get here\n' [osh_.py status] Expected 1, got 0 stdout: ok should not get herestderr: |
osh_.cc | 4 set is special and fails, even if using || true [osh_.cc stdout] Expected 'ok\n', got 'ok\nshould not get here\n' [osh_.cc status] Expected 1, got 0 stdout: ok should not get herestderr: |
osh | 5 Special builtins can't be redefined as functions [osh status] Expected 2, got 0 stdout: status=0stderr: |
osh_.py | 5 Special builtins can't be redefined as functions [osh_.py status] Expected 2, got 0 stdout: status=0stderr: |
osh_.cc | 5 Special builtins can't be redefined as functions [osh_.cc status] Expected 2, got 0 stdout: status=0stderr: |