spec test index / oilshell.org
71 passed, 0 OK, 0 not implemented, 0 BUG, 13 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh_.cc | 1 errexit for nonexistent command [osh_.cc status] Expected 127, got 1 stdout: stderr: nonexistent__ZZ ^~~~~~~~~~~~~~~ [ stdin ]:2: 'nonexistent__ZZ' not found nonexistent__ZZ ^~~~~~~~~~~~~~~ [ stdin ]:2: fatal: Exiting with status 127 (command in PID 18990) |
osh_.cc | 2 errexit aborts early on pipeline [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_.cc | 5 errexit with || [osh_.cc stdout] Expected 'ok\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_.cc | 6 errexit with && [osh_.cc status] Expected 1, got -6 stdout: okstderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 11 errexit and time { } [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.dbg: cpp/core_pyos.h:30: Tuple3<double, double, double> pyos::Time(): Assertion `0' failed. |
osh_.py | 23 background processes respect errexit [osh_.py stderr] Found 'Traceback (most recent' stdout: onestderr: [%1] Started PID 20417 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 231, in RunSimpleCommand return 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: 32 { echo one; false; echo two; exit 42; } & ^~~~~ [ stdin ]:2: fatal: Exiting with status 1 (command in PID 20417) |
osh_.cc | 23 background processes respect errexit [osh_.cc status] Expected 1, got -6 stdout: onestderr: [%1] Started PID 20432 osh_eval.dbg: mycpp/mylib.h:700: V Dict<int, vm::_Builtin *>::index(K) [K = int, V = vm::_Builtin *]: Assertion `0' failed. { echo one; false; echo two; exit 42; } & ^~~~~ [ stdin ]:2: fatal: Exiting with status 1 (command in PID 20432) |
osh_.cc | 24 pipeline process respects errexit [osh_.cc stdout] Expected 'one\n[three]\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_.cc | 25 compound command [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:139: void posix::dup2(int, int): Assertion `0' failed. |
osh_.cc | 26 while loop [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:139: void posix::dup2(int, int): Assertion `0' failed. |
osh | 27 set -e enabled in function (regression) [osh stdout] Expected 'should be executed\nshould be executed\n', got '' [osh status] Expected 0, got 1 stdout: stderr: false ^~~~~ [ stdin ]:4: fatal: Exiting with status 1 (command in PID 20818) |
osh_.py | 27 set -e enabled in function (regression) [osh_.py stdout] Expected 'should be executed\nshould be executed\n', got '' [osh_.py status] Expected 0, got 1 stdout: stderr: false ^~~~~ [ stdin ]:4: fatal: Exiting with status 1 (command in PID 20867) |
osh_.cc | 27 set -e enabled in function (regression) [osh_.cc stdout] Expected 'should be executed\nshould be executed\n', got '' [osh_.cc status] Expected 0, got 1 stdout: stderr: false ^~~~~ [ stdin ]:4: fatal: Exiting with status 1 (command in PID 20888) |