spec test index / oilshell.org
50 passed, 3 OK, 0 not implemented, 0 BUG, 10 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 1 Cannot take length of substring slice stdout: stderr: echo ${#v:1:3} ^ [ stdin ]:2: Expected } after length expression |
osh_.py | 1 Cannot take length of substring slice stdout: stderr: echo ${#v:1:3} ^ [ stdin ]:2: Expected } after length expression |
osh_.cc | 1 Cannot take length of substring slice stdout: stderr: echo ${#v:1:3} ^ [ stdin ]:2: Expected } after length expression dumb_alloc: gNumNew = 1701 gNumDelete = 104 gMemPos = 60016 gNumMalloc = 41 gNumFree = 0 gMemPos2 = 9232 |
osh_.cc | 11 Slice string with invalid UTF-8 results in empty string and warning [osh_.cc stdout] Expected '--\n', got '' [osh_.cc stderr] Expected '[??? no location ???] warning: Invalid start of UTF-8 character\n', got "osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.\n" [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 Slice string with invalid UTF-8 with strict_word_eval [osh_.cc stdout] Expected 'slice\n', got '' [osh_.cc status] Expected 1, got -6 stdout: stderr: osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.cc | 15 Simple ${@:offset} [osh_.cc stdout] Expected "['SHELL', '4', '5', '6']\n['4', '5', '6']\n['5', '6']\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 ${@:offset} and ${*:offset} [osh_.cc stdout] Expected "['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1 b 2 c 3-']\n['-a 1 b 2 c 3-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1', 'b 2', 'c 3-']\n['-a 1', 'b 2', 'c 3-']\n['-c 3-']\n['--']\n['--']\n", got "['--']\n['-c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['--']\n['-SHELL', 'a', '1', 'b', '2', 'c', '3-']\n['--']\n['-c', '3-']\n['-a', '1', 'b', '2', 'c', '3-']\n['--']\n['-SHELL a 1 b 2 c 3-']\n['-a 1', 'b 2', 'c 3-']\n['-c 3-']\n['-c 3-']\n['--']\n['--']\n['-a 1 b 2 c 3-']\n['--']\n['-SHELL', 'a 1', 'b 2', 'c 3-']\n['--']\n" [osh_.cc status] Expected 0, got 255 stdout: ['--'] ['-c', '3-'] ['-a', '1', 'b', '2', 'c', '3-'] ['-SHELL', 'a', '1', 'b', '2', 'c', '3-'] ['--'] ['-SHELL', 'a', '1', 'b', '2', 'c', '3-'] ['--'] ['-c', '3-'] ['-a', '1', 'b', '2', 'c', '3-'] ['--'] ['-SHELL a 1 b 2 c 3-'] ['-a 1', 'b 2', 'c 3-'] ['-c 3-'] ['-c 3-'] ['--'] ['--'] ['-a 1 b 2 c 3-'] ['--'] ['-SHELL', 'a 1', 'b 2', 'c 3-'] ['--']stderr: dumb_alloc: gNumNew = 9131 gNumDelete = 1363 gMemPos = 322512 gNumMalloc = 4015 gNumFree = 0 gMemPos2 = 79376 |
osh_.cc | 17 ${@:offset:length} and ${*:offset:length} [osh_.cc stdout] Expected "['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-SHELL a 1-']\n['-a 1 b 2-']\n['-c 3-']\n['--']\n['--']\n['-SHELL', 'a 1-']\n['-a 1', 'b 2-']\n['-c 3-']\n['--']\n['--']\n", got "['-SHELL', 'a', '1-']\n['-a', '1', 'b', '2-']\n['-c', '3-']\n['--']\n['--']\n['-c', '3-']\n['-a', '1', 'b', '2-']\n['--']\n['--']\n['-SHELL a 1-']\n['-a 1 b 2-']\n['--']\n['-SHELL', 'a', '1-']\n['-c 3-']\n['-a 1', 'b 2-']\n['-c 3-']\n['--']\n['--']\n['--']\n['-SHELL', 'a 1-']\n" [osh_.cc status] Expected 0, got 255 stdout: ['-SHELL', 'a', '1-'] ['-a', '1', 'b', '2-'] ['-c', '3-'] ['--'] ['--'] ['-c', '3-'] ['-a', '1', 'b', '2-'] ['--'] ['--'] ['-SHELL a 1-'] ['-a 1 b 2-'] ['--'] ['-SHELL', 'a', '1-'] ['-c 3-'] ['-a 1', 'b 2-'] ['-c 3-'] ['--'] ['--'] ['--'] ['-SHELL', 'a 1-']stderr: dumb_alloc: gNumNew = 9018 gNumDelete = 1305 gMemPos = 317408 gNumMalloc = 3950 gNumFree = 0 gMemPos2 = 78208 |
osh_.cc | 18 ${@:0:1} [osh_.cc stdout] Expected 'SHELL\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 | 19 ${array[@]::0} [osh_.cc status] Expected 0, got 255 stdout: []stderr: dumb_alloc: gNumNew = 1879 gNumDelete = 133 gMemPos = 64816 gNumMalloc = 91 gNumFree = 0 gMemPos2 = 10032 |
osh | 20 ${array[@]::} [osh stdout] Expected '[]\n', got '' [osh status] Expected 0, got 2 stdout: stderr: argv.py ${array[@]::} ^ [ stdin ]:2: Token can't be used in prefix position |
osh_.py | 20 ${array[@]::} [osh_.py stdout] Expected '[]\n', got '' [osh_.py status] Expected 0, got 2 stdout: stderr: argv.py ${array[@]::} ^ [ stdin ]:2: Token can't be used in prefix position |
osh_.cc | 20 ${array[@]::} [osh_.cc stdout] Expected '[]\n', got '' [osh_.cc status] Expected 0, got 2 stdout: stderr: argv.py ${array[@]::} ^ [ stdin ]:2: Token can't be used in prefix position dumb_alloc: gNumNew = 1804 gNumDelete = 117 gMemPos = 62784 gNumMalloc = 83 gNumFree = 0 gMemPos2 = 9936 |