spec test index / oilshell.org
52 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: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 1 $PWD is not only set, but exported [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 2 $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: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 3 $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 | 3 $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: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 4 $? [osh_.cc stdout] Expected '0\n33\n', got '0\n-1\n' stdout: 0 -1stderr: dumb_alloc: gNumNew = 2007 gNumDelete = 158 gMemPos = 68032 gNumMalloc = 118 gNumFree = 0 gMemPos2 = 10464 |
osh | 6 $_ [osh stdout] Expected u'hi\nhi\n', got 'hi\n\n' stdout: histderr: |
osh_.py | 6 $_ [osh_.py stdout] Expected u'hi\nhi\n', got 'hi\n\n' stdout: histderr: |
osh_.cc | 6 $_ [osh_.cc stdout] Expected u'hi\nhi\n', got 'hi\n\n' stdout: histderr: dumb_alloc: gNumNew = 1847 gNumDelete = 126 gMemPos = 63568 gNumMalloc = 78 gNumFree = 0 gMemPos2 = 9824 |
osh_.cc | 7 $$ looks like a PID [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 8 $$ 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 1 stdout: subshell OKstderr: test -n "$parent" || die "empty PID in parent" ^~~~ [ stdin ]:6: fatal: Exiting with status -1 (subshell invoked from PID 10975) dumb_alloc: gNumNew = 2363 gNumDelete = 240 gMemPos = 78528 gNumMalloc = 187 gNumFree = 0 gMemPos2 = 11648 |
osh_.cc | 9 $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 1 stdout: subshell OKstderr: test -n "$parent" || die "empty BASHPID in parent" ^~~~ [ stdin ]:6: fatal: Exiting with status -1 (subshell invoked from PID 11226) dumb_alloc: gNumNew = 2366 gNumDelete = 241 gMemPos = 78608 gNumMalloc = 189 gNumFree = 0 gMemPos2 = 11696 |
osh_.py | 10 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 476, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 324, 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 1498, in ExecuteAndCatch status = self._Execute(node) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1345, in _Execute status, check_errexit = self._Dispatch(node, pipeline_st) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 623, in _Dispatch status = self._RunSimpleCommand(cmd_val, node.do_fork) File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 477, in _RunSimpleCommand return self.shell_ex.RunSimpleCommand(cmd_val, do_fork) File "/home/andy/git/oilshell/oil/core/executor.py", line 224, in RunSimpleCommand return self.RunBuiltin(builtin_id, cmd_val) File "/home/andy/git/oilshell/oil/core/executor.py", line 123, in RunBuiltin builtin_func = self.builtins[builtin_id] KeyError: 33 |
osh_.cc | 10 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: mycpp/mylib.h:674: V Dict<K, V>::index(K) [with K = int; V = vm::_Builtin*]: Assertion `0' failed. |
osh_.cc | 11 $PPID [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 12 $PIPESTATUS [osh_.cc stdout] Expected "['0', '33', '0']\n", got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh | 13 $RANDOM [osh status] Expected 0, got 1 stdout: 0stderr: |
osh_.py | 13 $RANDOM [osh_.py status] Expected 0, got 1 stdout: 0stderr: |
osh_.cc | 13 $RANDOM [osh_.cc status] Expected 0, got -6 stdout: 0stderr: osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 14 $UID and $EUID [osh_.cc stdout] Expected 'status=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 16 $HOSTNAME [osh_.cc stdout] Expected 'status=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 17 $LINENO is the current line, not line of function call [osh_.cc stdout] Expected "1\n['6']\n['3']\n['8']\n", got "1\n['8']\n['3']\n['6']\n" [osh_.cc status] Expected 0, got 255 stdout: 1 ['8'] ['3'] ['6']stderr: dumb_alloc: gNumNew = 2270 gNumDelete = 196 gMemPos = 76000 gNumMalloc = 203 gNumFree = 0 gMemPos2 = 11824 |
osh_.cc | 18 $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: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed. |
osh_.cc | 19 $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: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed. |
osh | 24 $LINENO in for (( loop [osh stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n' stdout: one 0 1 2stderr: |
osh_.py | 24 $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 | 24 $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 = 2149 gNumDelete = 157 gMemPos = 72128 gNumMalloc = 166 gNumFree = 0 gMemPos2 = 11232 |
osh | 26 $_ [osh stdout] Expected '1\nfoobar\n', got '\n\n' stdout: stderr: |
osh_.py | 26 $_ [osh_.py stdout] Expected '1\nfoobar\n', got '\n\n' stdout: stderr: |
osh_.cc | 26 $_ [osh_.cc stdout] Expected '1\nfoobar\n', got '\n\n' stdout: stderr: dumb_alloc: gNumNew = 1980 gNumDelete = 153 gMemPos = 66704 gNumMalloc = 104 gNumFree = 0 gMemPos2 = 10240 |
osh | 27 $_ 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 | 27 $_ 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 | 27 $_ 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 = 3130 gNumDelete = 374 gMemPos = 99920 gNumMalloc = 353 gNumFree = 0 gMemPos2 = 14304 |
osh | 28 $_ undefined [osh stdout] Expected 'nonempty=0\n', got '' [osh status] Expected 0, got 1 stdout: stderr: echo $_ ^~ [ -c flag ]:1: fatal: Undefined variable '_' x=$($SH -u -c 'echo $_') ^~ [ stdin ]:3: fatal: Exiting with status 1 (assignment in PID 14984) |
osh_.py | 28 $_ 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 '_' x=$($SH -u -c 'echo $_') ^~ [ stdin ]:3: fatal: Exiting with status 1 (assignment in PID 15031) |
osh_.cc | 28 $_ undefined [osh_.cc stdout] Expected 'nonempty=0\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 29 BASH_VERSION / OIL_VERSION [osh_.py stdout] Expected 'matched=0\n', got 'no version\n' stdout: no versionstderr: |
osh_.cc | 29 BASH_VERSION / OIL_VERSION [osh_.cc stdout] Expected 'matched=0\n', got 'no version\n' stdout: no versionstderr: dumb_alloc: gNumNew = 2056 gNumDelete = 190 gMemPos = 70240 gNumMalloc = 97 gNumFree = 0 gMemPos2 = 10208 |