Results for ysh-introspect.test.sh

statusyshysh_ALT
pass 99
FAIL 33
total1212
caseyshysh_ALTdescription
0pass pass getFrame()
1FAIL FAIL bindFrame()
detailsdetails
2pass pass vm.getDebugStack()
3pass pass DebugFrame.toString() running file
4pass pass DebugFrame.toString() running stdin and -c
5pass pass DebugFrame.toString() running eval
6pass pass DebugFrame.toString() running eval methods
7FAIL FAIL DebugFrame.toString() running YSH functions
detailsdetails
8pass pass DebugFrame.toString() with 'use' builtin
9pass pass FUNCNAME BASH_LINENO BASH_SOURCE not available with YSH functions
10pass pass DebugFrame.toString() with trap ERR - external failure
11FAIL FAIL DebugFrame.toString() with trap ERR - proc failure
detailsdetails
18 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

ysh1 bindFrame()

[ysh stdout] Expected '', got '<Command>\n(Null) null\n'

stdout:
<Command>
(Null)   null
stderr:
ysh_ALT1 bindFrame()

[ysh_ALT stdout] Expected '', got '<Command>\n(Null) null\n'

stdout:
<Command>
(Null)   null
stderr:
ysh7 DebugFrame.toString() running YSH functions

[ysh stdout] Expected 'z\n', got ' #1 [ -c flag ]:1\n source $[ENV.REPO_ROOT]/spec/testdata/debug-frame-lib.ysh; call-func\n ^~~~~~~~~\n #2 /home/uke/oil/spec/testdata/debug-frame-lib.ysh:19\n var x = myfunc(99)\n ^\n #3 /home/uke/oil/spec/testdata/debug-frame-lib.ysh:29\n return (myfunc2(x+1, 42))\n ^~~~~~\n #4 /home/uke/oil/spec/testdata/debug-frame-lib.ysh:24\n print-stack\n ^~~~~~~~~~~\n142\n\n'

stdout:
  #1 [ -c flag ]:1
    source $[ENV.REPO_ROOT]/spec/testdata/debug-frame-lib.ysh; call-func
                                                               ^~~~~~~~~
  #2 /home/uke/oil/spec/testdata/debug-frame-lib.ysh:19
      var x = myfunc(99)
          ^
  #3 /home/uke/oil/spec/testdata/debug-frame-lib.ysh:29
      return (myfunc2(x+1, 42))
      ^~~~~~
  #4 /home/uke/oil/spec/testdata/debug-frame-lib.ysh:24
      print-stack
      ^~~~~~~~~~~
142

stderr:
ysh_ALT7 DebugFrame.toString() running YSH functions

[ysh_ALT stdout] Expected 'z\n', got ' #1 [ -c flag ]:1\n source $[ENV.REPO_ROOT]/spec/testdata/debug-frame-lib.ysh; call-func\n ^~~~~~~~~\n #2 /home/uke/oil/spec/testdata/debug-frame-lib.ysh:19\n var x = myfunc(99)\n ^\n #3 /home/uke/oil/spec/testdata/debug-frame-lib.ysh:29\n return (myfunc2(x+1, 42))\n ^~~~~~\n #4 /home/uke/oil/spec/testdata/debug-frame-lib.ysh:24\n print-stack\n ^~~~~~~~~~~\n142\n\n'

stdout:
  #1 [ -c flag ]:1
    source $[ENV.REPO_ROOT]/spec/testdata/debug-frame-lib.ysh; call-func
                                                               ^~~~~~~~~
  #2 /home/uke/oil/spec/testdata/debug-frame-lib.ysh:19
      var x = myfunc(99)
          ^
  #3 /home/uke/oil/spec/testdata/debug-frame-lib.ysh:29
      return (myfunc2(x+1, 42))
      ^~~~~~
  #4 /home/uke/oil/spec/testdata/debug-frame-lib.ysh:24
      print-stack
      ^~~~~~~~~~~
142

stderr:
ysh11 DebugFrame.toString() with trap ERR - proc failure

[ysh stdout] Expected '[ stdin ]:14\n f\n ^\n[ stdin ]:11\n return 42\n ^~~~~~\n' Got '[ stdin ]:14\n f\n ^\n[ stdin ]:7\n g\n ^\n[ stdin ]:7\n g\n ^\n'

stdout:
[ stdin ]:14
    f
    ^
[ stdin ]:7
      g
      ^
[ stdin ]:7
      g
      ^
stderr:
    ( exit 42 )
    ^
[ stdin ]:11: errexit PID 6127: command.Subshell failed with status 42
ysh_ALT11 DebugFrame.toString() with trap ERR - proc failure

[ysh_ALT stdout] Expected '[ stdin ]:14\n f\n ^\n[ stdin ]:11\n return 42\n ^~~~~~\n' Got '[ stdin ]:14\n f\n ^\n[ stdin ]:7\n g\n ^\n[ stdin ]:7\n g\n ^\n'

stdout:
[ stdin ]:14
    f
    ^
[ stdin ]:7
      g
      ^
[ stdin ]:7
      g
      ^
stderr:
    ( exit 42 )
    ^
[ stdin ]:11: errexit PID 6131: command.Subshell failed with status 42