spec test index / oilshell.org
status | osh | osh_.py | osh_.cc | |
pass | 10 | 10 | 9 | |
FAIL | 1 | 1 | 2 | |
total | 11 | 11 | 11 | |
case | osh | osh_.py | osh_.cc | description |
0 | pass | pass | pass | Locals don't leak |
1 | pass | pass | pass | Globals leak |
2 | pass | pass | pass | Return statement |
3 | pass | pass | pass | Dynamic Scope |
4 | pass | pass | pass | Dynamic Scope Mutation (wow this is bad) |
5 | pass | pass | pass | Assign local separately |
6 | pass | pass | pass | Assign a local and global on same line |
7 | pass | pass | FAIL | Return without args gives previous |
details | ||||
8 | pass | pass | pass | return "" (a lot of disagreement) |
9 | pass | pass | pass | return $empty |
10 | FAIL | FAIL | FAIL | Subshell function |
details | details | details |
29 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh_.cc | 7 Return without args gives previous [osh_.cc stdout] Expected 'status=42\n', got 'status=255\n' stdout: status=255stderr: dumb_alloc: gNumNew = 1946 gNumDelete = 148 gMemPos = 66512 gNumMalloc = 101 gNumFree = 0 gMemPos2 = 10192 |
osh | 10 Subshell function [osh stdout] Expected 'status=42\nstatus=42\n', got 'status=42\n' [osh status] Expected 0, got 1 stdout: status=42stderr: g() ( return 42 ) ^~~~~~ [ stdin ]:2: fatal: Invalid control flow 'return' in pipeline / subshell / background |
osh_.py | 10 Subshell function [osh_.py stdout] Expected 'status=42\nstatus=42\n', got 'status=42\n' [osh_.py status] Expected 0, got 1 stdout: status=42stderr: g() ( return 42 ) ^~~~~~ [ stdin ]:2: fatal: Invalid control flow 'return' in pipeline / subshell / background |
osh_.cc | 10 Subshell function [osh_.cc stdout] Expected 'status=42\nstatus=42\n', got 'status=-1\n' [osh_.cc status] Expected 0, got 1 stdout: status=-1stderr: g ^ [ stdin ]:6: fatal: Invalid control flow 'return' in pipeline / subshell / background dumb_alloc: gNumNew = 2003 gNumDelete = 155 gMemPos = 68304 gNumMalloc = 111 gNumFree = 0 gMemPos2 = 10352 |