spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 3 | 3 | 2 | |
FAIL | 4 | 4 | 5 | |
total | 7 | 7 | 7 | |
case | osh | osh_.py | osh_.cc | description |
0 | FAIL | FAIL | FAIL | : is special and prefix assignments persist after special builtins |
details | details | details | ||
1 | pass | pass | FAIL | readonly is special and prefix assignments persist |
details | ||||
2 | pass | pass | pass | true is not special |
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 |
8 passed, 0 OK, 0 not implemented, 0 BUG, 13 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_.cc | 0 : is special and prefix assignments persist after special builtins [osh_.cc stdout] Expected 'foo=bar\n', got 'foo=\n' stdout: foo=stderr: dumb_alloc: gNumNew = 2089 gNumDelete = 182 gMemPos = 71120 gNumMalloc = 148 gNumFree = 0 gMemPos2 = 11616 |
osh_.cc | 1 readonly is special and prefix assignments persist [osh_.cc stdout] Expected 'foo=bar\nspam=eggs\nNone\nNone\n', got 'None\nNone\nfoo=bar\nspam=eggs\n' stdout: None None foo=bar spam=eggsstderr: dumb_alloc: gNumNew = 2541 gNumDelete = 255 gMemPos = 84304 gNumMalloc = 322 gNumFree = 0 gMemPos2 = 14432 |
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: dumb_alloc: gNumNew = 2169 gNumDelete = 196 gMemPos = 72784 gNumMalloc = 195 gNumFree = 0 gMemPos2 = 12320 |
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: shopt -s invalid_ || true ^~~~~ [ stdin ]:1: 'shopt' got invalid option 'invalid_' set -o invalid_ || true ^~~ [ stdin ]:3: 'set' got invalid option 'invalid_' |
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: shopt -s invalid_ || true ^~~~~ [ stdin ]:1: 'shopt' got invalid option 'invalid_' dumb_alloc: gNumNew = 2428 gNumDelete = 229 gMemPos = 80688 gNumMalloc = 300 gNumFree = 0 gMemPos2 = 14016 |
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: dumb_alloc: gNumNew = 2047 gNumDelete = 184 gMemPos = 69008 gNumMalloc = 132 gNumFree = 0 gMemPos2 = 11312 |