Results for ysh-bugs.test.sh

statusyshysh_ALT
pass 99
FAIL 44
total1313
caseyshysh_ALTdescription
0pass pass fastlex: NUL byte not allowed inside char literal #' '
1pass pass fastlex: NUL byte inside shebang line
2pass pass Tea keywords don't interfere with YSH expressions
3pass pass Catch AttributeError
4pass pass Command sub paren parsing bug (#1387)
5pass pass More Command sub paren parsing
6pass pass don't execute empty command
7FAIL FAIL Do && || with YSH constructs make sense/
detailsdetails
8FAIL FAIL shvar then replace - bug #1986 context manager crash
detailsdetails
9pass pass Parsing crash - bug #2003
10FAIL FAIL proc with IFS= read -r line - dynamic scope - issue #2012
detailsdetails
11FAIL FAIL func call inside proc call - error message attribution
detailsdetails
12pass pass Crash in parsing case on EOF condition - issue #2037
18 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

ysh7 Do && || with YSH constructs make sense/

[ysh stdout] Expected '', got '(List) [42]\n(Int) 42\n(Int) 42\n'

stdout:
(List)   [42]
(Int)   42
(Int)   42
stderr:
ysh_ALT7 Do && || with YSH constructs make sense/

[ysh_ALT stdout] Expected '', got '(List) [42]\n(Int) 42\n(Int) 42\n'

stdout:
(List)   [42]
(Int)   42
(Int)   42
stderr:
ysh8 shvar then replace - bug #1986 context manager crash

[ysh stdout] Expected 'world\n', got ''
[ysh status] Expected 0, got 1

stdout:
stderr: 
  echo $Q
       ^~
[ stdin ]:9: fatal: Undefined variable 'Q'
ysh_ALT8 shvar then replace - bug #1986 context manager crash

[ysh_ALT stdout] Expected 'world\n', got ''
[ysh_ALT status] Expected 0, got 2

stdout:
stderr: 
  source --builtin ysh/shvar.ysh
                   ^~~
[ stdin ]:1: source failed: No builtin file 'stdlib/ysh/shvar.ysh'
  source --builtin ysh/shvar.ysh
  ^~~~~~
[ stdin ]:1: errexit PID 35947: command.Simple failed with status 2
ysh10 proc with IFS= read -r line - dynamic scope - issue #2012

[ysh stdout] Expected 'zz\nyy\n', got 'zz\n'
[ysh status] Expected 0, got 1

stdout:
zz
stderr:
    write $line
          ^~~~~
[ stdin ]:8: fatal: Undefined variable 'line'
  echo yy | p-ifs
            ^~~~~
[ stdin ]:14: errexit PID 35960: command.Pipeline failed with status 1
ysh_ALT10 proc with IFS= read -r line - dynamic scope - issue #2012

[ysh_ALT stdout] Expected 'zz\nyy\n', got 'zz\n'
[ysh_ALT status] Expected 0, got 1

stdout:
zz
stderr:
    write $line
          ^~~~~
[ stdin ]:8: fatal: Undefined variable 'line'
  echo yy | p-ifs
            ^~~~~
[ stdin ]:14: errexit PID 35965: command.Pipeline failed with status 1
ysh11 func call inside proc call - error message attribution

[ysh stdout] Expected '', got ' eval (ident([1,2,3]))\n ^\n[ -c flag ]:11: fatal: Arg 1 should be a Command, got List\n'

stdout:
  eval (ident([1,2,3]))
             ^
[ -c flag ]:11: fatal: Arg 1 should be a Command, got List
stderr:
ysh_ALT11 func call inside proc call - error message attribution

[ysh_ALT stdout] Expected '', got ' eval (ident([1,2,3]))\n ^\n[ -c flag ]:11: fatal: Arg 1 should be a Command, got List\n'

stdout:
  eval (ident([1,2,3]))
             ^
[ -c flag ]:11: fatal: Arg 1 should be a Command, got List
stderr: