spec test index / oilshell.org
143 passed, 0 OK, 0 not implemented, 0 BUG, 55 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh_.cc | 9 \0 [osh_.cc stdout] Expected u'ab\x00cd\n', got 'abcd\n' stdout: abcdstderr: dumb_alloc: gNumNew = 1830 gNumDelete = 123 gMemPos = 63424 gNumMalloc = 73 gNumFree = 0 gMemPos2 = 9728 |
osh_.cc | 15 \0377 is the highest octal byte [osh_.cc stdout] Expected u' ff 37\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 | 16 \0400 is one more than the highest octal byte [osh_.cc stdout] Expected u' 00 30\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 \0777 is out of range [osh_.cc stdout] Expected u' ff\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 incomplete hex escape [osh_.cc stdout] Expected u' a b c d 006\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 | 19 \x [osh_.cc stdout] Expected u' \\ x \\ x g \\n\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 | 20 incomplete octal escape [osh_.cc stdout] Expected u' a b c d 004\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 | 21 incomplete unicode escape [osh_.cc stdout] Expected u' a b c d 006\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 | 22 \u6 [osh_.cc stdout] Expected u' 006\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 | 23 \0 \1 \8 [osh_.cc stdout] Expected u' \\0 \\ 1 \\ 8\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 | 24 Read builtin [osh_.cc stdout] Expected '[A\t\tB C D E]\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 | 25 Read from empty file [osh_.cc stdout] Expected "['status=1', '']\n['status=1', '']\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 | 26 read /dev/null [osh_.cc stdout] Expected '1\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 | 27 read with zero args [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 | 28 Read builtin with no newline. [osh_.cc stdout] Expected u'1\nZZZ\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 | 29 Read builtin with multiple variables [osh_.cc stdout] Expected '[A/B/C D E]\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 | 30 Read builtin with not enough variables [osh_.cc stdout] Expected '/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_.cc | 31 Read -n (with $REPLY) [osh_.cc stdout] Expected "['1234', '12']\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 | 32 IFS= read -n (OSH regression: value saved in tempenv) [osh_.cc stdout] Expected "['X']\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 | 34 read -n from pipe [osh_.cc stdout] Expected 'reply=abc\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 | 35 Read uses $REPLY (without -n) [osh_.cc stdout] Expected '123\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 | 36 read -r ignores backslashes [osh_.cc stdout] Expected "['one two', 'one\\\\ two']\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 | 37 read -r with other backslash escapes [osh_.cc stdout] Expected "['one twox65three', 'one\\\\ two\\\\x65three']\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 | 38 read with line continuation reads multiple physical lines [osh_.cc stdout] Expected "['onetwo', 'one\\\\']\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 | 39 read multiple vars spanning many lines [osh_.cc stdout] Expected "['one-two', 'three-four five-six', '']\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 | 40 read -r with \n [osh_.cc stdout] Expected "['nline', '\\\\nline']\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 | 41 read -s from pipe, not a terminal [osh_.cc stdout] Expected 'foo\nba\n0\nb\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 | 42 Read with IFS=$'\n' [osh_.cc stdout] Expected '[ a b c]\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 | 43 Read multiple lines with IFS=: [osh_.cc stdout] Expected '[ \\a |b: c|d e|]\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 | 44 Read with IFS='' [osh_.cc stdout] Expected '[ a b c d|]\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 | 45 Read should not respect C escapes. [osh_.cc stdout] Expected u'a b c d e f g h x65 145 i\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 | 46 Read builtin uses dynamic scope [osh_.cc stdout] Expected 'ref: refs/heads/dev/andy\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 | 47 read -a reads into array [osh_.cc stdout] Expected "['a', 'b', 'c d']\n['a', 'b', 'c\\\\', 'd']\n[]\n[]\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 | 48 read -d : (colon-separated records) [osh_.cc stdout] Expected 'v1=a,b,c\nv1=d v2=e,f\nv1=g v2=h v3=i\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 | 49 read -d '' (null-separated records) [osh_.cc stdout] Expected 'v1=a,b,c\nv1=d v2=e,f\nv1=g v2=h v3=i\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 | 50 read -rd [osh_.cc stdout] Expected 'foo\nbar\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 | 51 read -d when there's no delimiter [osh_.cc stdout] Expected 'foo 0\nbar 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_.cc | 52 read -t 0 tests if input is available [osh_.cc stdout] Expected '0\n0\nreply=\n0\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 | 53 read -t 0.5 [osh stdout] Expected '1\n', got '' [osh status] Expected 0, got 1 stdout: stderr: read -t 0.5 < /dev/null ^~~~ [ stdin ]:3: fatal: read -t isn't implemented (except t=0) |
osh_.py | 53 read -t 0.5 [osh_.py stdout] Expected '1\n', got '' [osh_.py status] Expected 0, got 1 stdout: stderr: read -t 0.5 < /dev/null ^~~~ [ stdin ]:3: fatal: read -t isn't implemented (except t=0) |
osh_.cc | 53 read -t 0.5 [osh_.cc stdout] Expected '1\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 | 54 read -t -0.5 is invalid [osh_.cc stdout] Expected '2\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 | 55 read -u [osh stdout] Expected 'reply=hi\n', got 'reply=\n' stdout: reply=stderr: |
osh_.py | 55 read -u [osh_.py stdout] Expected 'reply=hi\n', got 'reply=\n' stdout: reply=stderr: |
osh_.cc | 55 read -u [osh_.cc stdout] Expected 'reply=hi\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 | 57 read -N doesn't respect delimiter, while read -n does [osh stdout] Expected 'foo\nfooba\n', got 'fooba\nfooba\n' stdout: fooba foobastderr: echo foobar | { read -N 5 -d b; echo $REPLY; } ^~ [ stdin ]:4: 'read' doesn't accept flag -N |
osh_.py | 57 read -N doesn't respect delimiter, while read -n does [osh_.py stdout] Expected 'foo\nfooba\n', got 'fooba\nfooba\n' stdout: fooba foobastderr: echo foobar | { read -N 5 -d b; echo $REPLY; } ^~ [ stdin ]:4: 'read' doesn't accept flag -N |
osh_.cc | 57 read -N doesn't respect delimiter, while read -n does [osh_.cc stdout] Expected 'foo\nfooba\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 | 58 read -p (not fully tested) [osh_.cc stdout] Expected 'hi\nh\n', got '' [osh_.cc stderr] Expected u'', got "osh_eval.opt.stripped: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.\ntimeout: the monitored command dumped core\n" [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 | 60 read with smooshed args [osh_.cc stdout] Expected 'var=h\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 | 61 read -r -d '' for NUL strings, e.g. find -print0 [osh_.cc stdout] Expected '[./a\\b\\c\\d]\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 | 62 redirection from directory is non-fatal error) [osh_.cc stdout] Expected 'status=1\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 | 63 read -n from directory [osh_.cc stdout] Expected 'status=1\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 | 64 mapfile from directory (bash doesn't handle errors) [osh_.cc stdout] Expected 'status=1\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 | 65 Redirect to directory [osh_.cc stdout] Expected 'status=1\nstatus=1\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 |