Results for ysh-closures.test.sh

statusoshosh-cpp
pass 55
FAIL 22
total77
caseoshosh-cppdescription
0pass pass Simple Expr Closure
1pass pass Simple Block Closure
2pass pass Expr Closures in a Loop !
3pass pass Block Closures in a Loop !
4pass pass Explicit __invoke__ for "objects in a loop", not closures in a loop
5FAIL FAIL Expr Closures in a different module
detailsdetails
6FAIL FAIL Command Closures in a different module
detailsdetails
10 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh5 Expr Closures in a different module

[osh stdout] Expected 'global!\nlocal!\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  use $REPO_ROOT/spec/testdata/module2/closure.ysh --pick {local,global}_expr
      ^~~~~~~~~~
[ stdin ]:3: use: couldn't find '/home/uke/oil/spec/testdata/module2/closure.ysh'
  use $REPO_ROOT/spec/testdata/module2/closure.ysh --pick {local,global}_expr
  ^~~
[ stdin ]:3: errexit PID 28775: command.Simple failed with status 1
osh-cpp5 Expr Closures in a different module

[osh-cpp stdout] Expected 'global!\nlocal!\n', got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
[ stdin ]:3: use builtin I/O error: No such file or directory
  use $REPO_ROOT/spec/testdata/module2/closure.ysh --pick {local,global}_expr
  ^~~
[ stdin ]:3: errexit PID 28790: command.Simple failed with status 1
osh6 Command Closures in a different module

[osh stdout] Expected 'global!\nlocal!\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  use $REPO_ROOT/spec/testdata/module2/closure.ysh --pick {local,global}_block
      ^~~~~~~~~~
[ stdin ]:3: use: couldn't find '/home/uke/oil/spec/testdata/module2/closure.ysh'
  use $REPO_ROOT/spec/testdata/module2/closure.ysh --pick {local,global}_block
  ^~~
[ stdin ]:3: errexit PID 28798: command.Simple failed with status 1
osh-cpp6 Command Closures in a different module

[osh-cpp stdout] Expected 'global!\nlocal!\n', got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
[ stdin ]:3: use builtin I/O error: No such file or directory
  use $REPO_ROOT/spec/testdata/module2/closure.ysh --pick {local,global}_block
  ^~~
[ stdin ]:3: errexit PID 28813: command.Simple failed with status 1