Results for ysh-func-builtin.test.sh

statusyshysh_ALT
pass 1515
FAIL 44
total1919
caseyshysh_ALTdescription
0pass pass join()
1pass pass @[split(x)] respects IFS
2pass pass @[maybe(x)]
3pass pass maybe() on invalid type is fatal error
4pass pass split() on invalid type is fatal error
5pass pass @[glob(x)]
6pass pass shSplit() respects IFS
7pass pass getVar() gets global or local vars
8pass pass ASCII upper() lower()
9FAIL FAIL Unicode upper() lower()
detailsdetails
10pass pass getFrame()
11FAIL FAIL bindFrame()
detailsdetails
12pass pass vm.getDebugStack()
13pass pass DebugFrame.toString() running file
14pass pass DebugFrame.toString() running stdin and -c
15FAIL FAIL DebugFrame.toString() running eval
detailsdetails
16FAIL FAIL DebugFrame.toString() running YSH functions
detailsdetails
17pass pass DebugFrame.toString() with 'use' builtin
18pass pass DebugFrame.toString() with trap ERR
30 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

ysh9 Unicode upper() lower()

[ysh stdout] Expected '\xc3\x80\xc3\x88\n\xc3\xa1\xc3\xa9\n', got '\xc3\x80\xc3\x88\n\xc3\xa1\xc3\xa9\n\n\xc3\x80\xc3\x88\n\xc3\x80\xc3\x88\n\xc3\xa1\xc3\xa9\n\xc3\xa1\xc3\xa9\n'

stdout:
ÀÈ
áé

ÀÈ
ÀÈ
áé
áé
stderr:
ysh_ALT9 Unicode upper() lower()

[ysh_ALT stdout] Expected '\xc3\x80\xc3\x88\n\xc3\xa1\xc3\xa9\n', got '\xc3\x80\xc3\x88\n\xc3\xa1\xc3\xa9\n\n\xc3\x80\xc3\x88\n\xc3\x80\xc3\x88\n\xc3\xa1\xc3\xa9\n\xc3\xa1\xc3\xa9\n'

stdout:
ÀÈ
áé

ÀÈ
ÀÈ
áé
áé
stderr:
ysh11 bindFrame()

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

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

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

stdout:
<Command>
(Null)   null
stderr:
ysh15 DebugFrame.toString() running eval

[ysh stdout] Expected '', got ' %1 [ eval arg at line 1 of [ -c flag ] ]:1\n my-proc a b\n ^~~~~~~\n %2 MYROOT/spec/testdata/debug-frame-lib.ysh:15\n print-stack\n ^~~~~~~~~~~\n\n %1 [ -c flag ]:1\n source $[ENV.REPO_ROOT]/spec/testdata/debug-frame-eval.ysh\n ^~~~~~\n %2 MYROOT/spec/testdata/debug-frame-eval.ysh:7\n p3\n ^~\n %3 [ eval arg at line 4 of MYROOT/spec/testdata/debug-frame-eval.ysh ]:1\n my-proc x y\n ^~~~~~~\n %4 MYROOT/spec/testdata/debug-frame-lib.ysh:15\n print-stack\n ^~~~~~~~~~~\n'

stdout:
  %1 [ eval arg at line 1 of [ -c flag ] ]:1
    my-proc a b
    ^~~~~~~
  %2 MYROOT/spec/testdata/debug-frame-lib.ysh:15
      print-stack
      ^~~~~~~~~~~

  %1 [ -c flag ]:1
    source $[ENV.REPO_ROOT]/spec/testdata/debug-frame-eval.ysh
    ^~~~~~
  %2 MYROOT/spec/testdata/debug-frame-eval.ysh:7
    p3
    ^~
  %3 [ eval arg at line 4 of MYROOT/spec/testdata/debug-frame-eval.ysh ]:1
    my-proc x y
    ^~~~~~~
  %4 MYROOT/spec/testdata/debug-frame-lib.ysh:15
      print-stack
      ^~~~~~~~~~~
stderr:
ysh_ALT15 DebugFrame.toString() running eval

[ysh_ALT stdout] Expected '', got ' %1 [ eval arg at line 1 of [ -c flag ] ]:1\n my-proc a b\n ^~~~~~~\n %2 MYROOT/spec/testdata/debug-frame-lib.ysh:15\n print-stack\n ^~~~~~~~~~~\n\n %1 [ -c flag ]:1\n source $[ENV.REPO_ROOT]/spec/testdata/debug-frame-eval.ysh\n ^~~~~~\n %2 MYROOT/spec/testdata/debug-frame-eval.ysh:7\n p3\n ^~\n %3 [ eval arg at line 4 of MYROOT/spec/testdata/debug-frame-eval.ysh ]:1\n my-proc x y\n ^~~~~~~\n %4 MYROOT/spec/testdata/debug-frame-lib.ysh:15\n print-stack\n ^~~~~~~~~~~\n'

stdout:
  %1 [ eval arg at line 1 of [ -c flag ] ]:1
    my-proc a b
    ^~~~~~~
  %2 MYROOT/spec/testdata/debug-frame-lib.ysh:15
      print-stack
      ^~~~~~~~~~~

  %1 [ -c flag ]:1
    source $[ENV.REPO_ROOT]/spec/testdata/debug-frame-eval.ysh
    ^~~~~~
  %2 MYROOT/spec/testdata/debug-frame-eval.ysh:7
    p3
    ^~
  %3 [ eval arg at line 4 of MYROOT/spec/testdata/debug-frame-eval.ysh ]:1
    my-proc x y
    ^~~~~~~
  %4 MYROOT/spec/testdata/debug-frame-lib.ysh:15
      print-stack
      ^~~~~~~~~~~
stderr:
ysh16 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_ALT16 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: