spec test index / oilshell.org
56 passed, 3 OK, 0 not implemented, 0 BUG, 13 failed, 0 timeouts, 0 cases skipped
osh | 8 dynamic control flow (KNOWN INCOMPATIBILITY) stdout: 1 2 3stderr: $b ^~ [ stdin ]:4: 'break' not found $b ^~ [ stdin ]:4: 'break' not found $b ^~ [ stdin ]:4: 'break' not found |
osh_.py | 8 dynamic control flow (KNOWN INCOMPATIBILITY) stdout: 1 2 3stderr: $b ^~ [ stdin ]:4: 'break' not found $b ^~ [ stdin ]:4: 'break' not found $b ^~ [ stdin ]:4: 'break' not found |
osh_.cc | 8 dynamic control flow (KNOWN INCOMPATIBILITY) stdout: 1 2 3stderr: $b ^~ [ stdin ]:4: 'break' not found $b ^~ [ stdin ]:4: 'break' not found $b ^~ [ stdin ]:4: 'break' not found |
osh_.cc | 10 while in pipe [osh_.cc stdout] Expected 'status=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 11 while in pipe with subshell [osh_.py stdout] Expected '3\n', got '0\n' stdout: 0stderr: seq 3 | ( while read foo; do ^~~ [ stdin ]:2: 'seq' not found |
osh_.cc | 11 while in pipe with subshell [osh_.cc stdout] Expected '3\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 14 continue in subshell [osh_.py stdout] Expected '> 1\nsubshell status=1\n. 1\n> 2\nsubshell status=1\n. 2\n', got '' stdout: stderr: for i in $(seq 2); do ^~~ [ stdin ]:1: 'seq' not found |
osh_.cc | 14 continue in subshell [osh_.cc stdout] Expected '> 1\nsubshell status=1\n. 1\n> 2\nsubshell status=1\n. 2\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 15 continue in subshell aborts with errexit [osh_.py stdout] Expected '> 1\n', got '' [osh_.py status] Expected 1, got 0 stdout: stderr: for i in $(seq 2); do ^~~ [ stdin ]:2: 'seq' not found |
osh_.cc | 15 continue in subshell aborts with errexit [osh_.cc stdout] Expected '> 1\n', got '' [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 21 break/continue within eval [osh_.py stdout] Expected '1\n3\n', got '' stdout: stderr: for i in $(seq 5); do ^~~ [ stdin ]:2: 'seq' not found |
osh_.cc | 21 break/continue within eval [osh_.cc stdout] Expected '1\n3\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 22 break/continue within source [osh_.py stdout] Expected '1\n3\ndone\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: cd $REPO_ROOT ^~ [ stdin ]:1: $HOME isn't defined for i in $(seq 5); do ^~~ [ stdin ]:3: 'seq' not found Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 71, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 39, in main status = pure.Main('osh', arg_r, environ, login_shell, loader, None) File "/home/andy/git/oilshell/oil/core/pure.py", line 451, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1438, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1318, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 570, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 481, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/core/executor.py", line 212, in RunSimpleCommand status = self.cmd_ev.RunProc(func_node, argv[1:]) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1522, in RunProc status = self._Execute(func_node.body) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1318, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 954, in _Dispatch status = self._ExecuteList(node.children) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _ExecuteList status = self._Execute(child) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1318, in _Execute status, check_errexit = self._Dispatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 570, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 481, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/core/executor.py", line 184, in RunSimpleCommand status = self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/core/executor.py", line 112, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 2 |
osh_.cc | 22 break/continue within source [osh_.cc stdout] Expected '1\n3\ndone\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: cd $REPO_ROOT ^~ [ stdin ]:1: $HOME isn't defined osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 23 top-level break/continue/return (without strict_control_flow) [osh_.py stdout] Expected 'break=0\ncontinue=0\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: $SH -c 'break; echo break=$?' ^~ [ stdin ]:1: '-c' not found $SH -c 'continue; echo continue=$?' ^~ [ stdin ]:2: '-c' not found $SH -c 'return; echo return=$?' ^~ [ stdin ]:3: '-c' not found |
osh_.cc | 23 top-level break/continue/return (without strict_control_flow) [osh_.cc stdout] Expected 'break=0\ncontinue=0\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: $SH -c 'break; echo break=$?' ^~ [ stdin ]:1: '-c' not found $SH -c 'continue; echo continue=$?' ^~ [ stdin ]:2: '-c' not found $SH -c 'return; echo return=$?' ^~ [ stdin ]:3: '-c' not found |