Results for ysh-builtin-module.test.sh

statusosh
pass 6
FAIL 1
total7
caseoshdescription
0pass source-guard is an old way of preventing redefinition - could remove it
1pass is-main
2pass is-main with -c and stdin
3pass use builtin usage
4pass use --extern is a no-op, for static analysis
5pass use foo.ysh creates a value.Obj, and it's cached on later invocations
6FAIL use foo.ysh creates a value.Obj with __invoke__
details
6 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh6 use foo.ysh creates a value.Obj with __invoke__

[osh stdout] Expected '', got 'caller_no_leak = null\n(Obj) {"MY_INTEGER":42,"log":<Proc>,"die":<Proc>,"setvar_noleak":"util.ysh","setglobal_noleak":"util.ysh"}\n'
[osh status] Expected 0, got 127

stdout:
caller_no_leak = null
(Obj)   {"MY_INTEGER":42,"log":<Proc>,"die":<Proc>,"setvar_noleak":"util.ysh","setglobal_noleak":"util.ysh"}
stderr:
  util log 'hello'
  ^~~~
[ stdin ]:7: 'util' not found (OILS-ERR-100)
[ stdin ]:7: errexit PID 36867: command.Simple failed with status 127