spec test index / oilshell.org
55 passed, 0 OK, 0 not implemented, 0 BUG, 38 failed, 0 timeouts, 0 cases skipped 6 failed under osh
osh_.cc | 0 $PWD is set [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.cc | 1 $PWD is not only set, but exported [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.cc | 2 $PATH is set if unset at startup [osh_.cc stdout] Expected 'yes\nyes\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.cc | 3 $HOME is NOT set [osh_.cc stdout] Expected 'status=0\nstatus=1\nstatus=1\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.py | 4 $1 .. $9 are scoped, while $0 is not [osh_.py stdout] Expected 'sh a b\n', got 'sh_eval.py a b\n' stdout: sh_eval.py a bstderr: |
osh_.cc | 4 $1 .. $9 are scoped, while $0 is not [osh_.cc stdout] Expected 'sh a b\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh | 7 $_ [osh stdout] Expected u'hi\nhi\n', got 'hi\n\n' stdout: histderr: |
osh_.py | 7 $_ [osh_.py stdout] Expected u'hi\nhi\n', got 'hi\n\n' stdout: histderr: |
osh_.cc | 7 $_ [osh_.cc stdout] Expected u'hi\nhi\n', got 'hi\n\n' stdout: histderr: dumb_alloc: gNumNew = 1879 gNumDelete = 126 gMemPos = 64560 gNumMalloc = 80 gNumFree = 0 gMemPos2 = 9840 |
osh_.cc | 8 $$ looks like a PID [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.cc | 9 $$ doesn't change with subshell or command sub [osh_.cc stdout] Expected 'subshell OK\ncommand sub OK\n', got 'subshell OK\n' [osh_.cc status] Expected 3, got -6 stdout: subshell OKstderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.cc | 10 $BASHPID DOES change with subshell and command sub [osh_.cc stdout] Expected 'subshell OK\ncommand sub OK\n', got 'subshell OK\n' [osh_.cc status] Expected 3, got -6 stdout: subshell OKstderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.py | 11 Background PID $! looks like a PID [osh_.py stdout] Expected 'status=0\n', got '' [osh_.py status] Expected 0, got 1 [osh_.py stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 68, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 36, in main None) File "/home/andy/git/oilshell/oil/core/shell_native.py", line 477, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 332, 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 1557, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1395, in _Execute status = self._Dispatch(node, cmd_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 694, in _Dispatch status = self._RunSimpleCommand(cmd_val, cmd_st, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 531, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, cmd_st, do_fork) File "/home/andy/git/oilshell/oil/core/executor.py", line 218, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/core/executor.py", line 125, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 33 |
osh_.cc | 11 Background PID $! looks like a PID [osh_.cc stdout] Expected 'status=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: mycpp/mylib.h:681: V Dict<K, V>::index(K) [with K = int; V = vm::_Builtin*]: Assertion `0' failed. timeout: the monitored command dumped core |
osh_.cc | 12 $PPID [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.cc | 13 $PIPESTATUS [osh_.cc stdout] Expected "['0', '33', '0']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh | 14 $RANDOM [osh status] Expected 0, got 1 stdout: 0stderr: |
osh_.py | 14 $RANDOM [osh_.py status] Expected 0, got 1 stdout: 0stderr: |
osh_.cc | 14 $RANDOM [osh_.cc status] Expected 0, got -6 stdout: 0stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.cc | 15 $UID and $EUID [osh_.cc stdout] Expected 'status=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.cc | 17 $HOSTNAME [osh_.cc stdout] Expected 'status=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.cc | 18 $LINENO is the current line, not line of function call [osh_.cc stdout] Expected "1\n['6']\n['3']\n['8']\n", got "['6']\n['3']\n['8']\n1\n" stdout: ['6'] ['3'] ['8'] 1stderr: dumb_alloc: gNumNew = 2303 gNumDelete = 199 gMemPos = 77696 gNumMalloc = 205 gNumFree = 0 gMemPos2 = 11840 |
osh_.cc | 19 $LINENO in "bare" redirect arg (bug regression) [osh_.cc stdout] Expected 'written\n5\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.cc | 20 $LINENO in redirect arg (bug regression) [osh_.cc stdout] Expected 'written\n5\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed. timeout: the monitored command dumped core |
osh | 25 $LINENO in for (( loop [osh stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n' stdout: one 0 1 2stderr: |
osh_.py | 25 $LINENO in for (( loop [osh_.py stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n' stdout: one 0 1 2stderr: |
osh_.cc | 25 $LINENO in for (( loop [osh_.cc stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n' stdout: one 0 1 2stderr: dumb_alloc: gNumNew = 2181 gNumDelete = 157 gMemPos = 73120 gNumMalloc = 168 gNumFree = 0 gMemPos2 = 11248 |
osh | 27 $_ [osh stdout] Expected '1\nfoobar\n', got '\n\n' stdout: stderr: |
osh_.py | 27 $_ [osh_.py stdout] Expected '1\nfoobar\n', got '\n\n' stdout: stderr: |
osh_.cc | 27 $_ [osh_.cc stdout] Expected '1\nfoobar\n', got '\n\n' stdout: stderr: dumb_alloc: gNumNew = 2012 gNumDelete = 153 gMemPos = 67696 gNumMalloc = 106 gNumFree = 0 gMemPos2 = 10256 |
osh | 28 $_ with assignments, arrays, etc. [osh stdout] Expected 'foo\ns:\ns:s=bar\na:\na:a\nflag:a\n', got '\ns:\ns:\na:\na:\nflag:\n' stdout: s: s: a: a: flag:stderr: |
osh_.py | 28 $_ with assignments, arrays, etc. [osh_.py stdout] Expected 'foo\ns:\ns:s=bar\na:\na:a\nflag:a\n', got '\ns:\ns:\na:\na:\nflag:\n' stdout: s: s: a: a: flag:stderr: |
osh_.cc | 28 $_ with assignments, arrays, etc. [osh_.cc stdout] Expected 'foo\ns:\ns:s=bar\na:\na:a\nflag:a\n', got '\ns:\ns:\na:\na:\nflag:\n' stdout: s: s: a: a: flag:stderr: dumb_alloc: gNumNew = 3162 gNumDelete = 374 gMemPos = 100912 gNumMalloc = 355 gNumFree = 0 gMemPos2 = 14320 |
osh | 29 $_ undefined [osh stdout] Expected 'nonempty=0\n', got '' [osh status] Expected 0, got 1 stdout: stderr: echo $_ ^~ [ -c flag ]:1: fatal: Undefined variable '_' |
osh_.py | 29 $_ undefined [osh_.py stdout] Expected 'nonempty=0\n', got '' [osh_.py status] Expected 0, got 1 stdout: stderr: echo $_ ^~ [ -c flag ]:1: fatal: Undefined variable '_' |
osh_.cc | 29 $_ undefined [osh_.cc stdout] Expected 'nonempty=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. timeout: the monitored command dumped core |
osh_.py | 30 BASH_VERSION / OIL_VERSION [osh_.py stdout] Expected 'matched=0\n', got 'no version\n' stdout: no versionstderr: |
osh_.cc | 30 BASH_VERSION / OIL_VERSION [osh_.cc stdout] Expected 'matched=0\n', got 'no version\n' stdout: no versionstderr: dumb_alloc: gNumNew = 2088 gNumDelete = 190 gMemPos = 71232 gNumMalloc = 99 gNumFree = 0 gMemPos2 = 10224 |