spec test index / oilshell.org
82 passed, 0 OK, 0 not implemented, 0 BUG, 11 failed, 0 timeouts, 0 cases skipped
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 24227) dumb_alloc: gNumNew = 1970 gNumDelete = 141 gMemPos = 68656 gNumMalloc = 142 gNumFree = 0 gMemPos2 = 11472 |
osh_.cc | 2 errexit aborts early on pipeline [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.opt: 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.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 6 errexit with && [osh_.cc stdout] Expected 'ok\n', got '' [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.opt: 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.opt: cpp/core_pyos.h:31: Tuple3<double, double, double> pyos::Time(): Assertion `0' failed. |
osh_.py | 24 background processes respect errexit [osh_.py stderr] Found 'Traceback (most recent' stdout: onestderr: { echo one; false; echo two; exit 42; } & ^~~~~ Traceback (most recent call last): [ stdin ]:2: fatal: Exiting with status 1 (command in PID 24456) File "/home/travis/build/oilshell/oil/bin/osh_eval.py", line 68, in <module> sys.exit(main(sys.argv)) File "/home/travis/build/oilshell/oil/bin/osh_eval.py", line 36, in main None) File "/home/travis/build/oilshell/oil/core/shell_native.py", line 476, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/travis/build/oilshell/oil/core/main_loop.py", line 324, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1498, in ExecuteAndCatch status = self._Execute(node) File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute status, check_errexit = self._Dispatch(node, pipeline_st) File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/travis/build/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/travis/build/oilshell/oil/core/executor.py", line 230, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/travis/build/oilshell/oil/core/executor.py", line 121, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 33 |
osh_.cc | 24 background processes respect errexit [osh_.cc status] Expected 1, got -6 stdout: onestderr: osh_eval.opt: mycpp/mylib.h:674: V Dict<K, V>::index(K) [with 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 24458) |
osh_.cc | 25 pipeline process respects errexit [osh_.cc stdout] Expected 'one\n[three]\n', got '' [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 26 compound command [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh_.cc | 27 while loop [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh_.cc | 30 Command sub exit code is lost [osh_.cc stdout] Expected 'ft\nstatus=0\nf\nstatus=0\nft\nstatus=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |