Results for oil-blocks.test.sh

statusosh
pass 12
FAIL 4
total16
caseoshdescription
0pass cd with block
1pass cd with block: fatal error in block
2pass cd with block: return in block
3pass cd with block: break in block
4pass cd with block exits with status 0
5pass block doesn't have its own scope
6FAIL block literal in expression mode: ^(echo $PWD)
details
7FAIL block arg as typed expression
details
8pass Pass invalid typed args
9pass 'builtin' and 'command' with block
10pass Consistency: Control Flow and Blocks
11pass Consistency: Exit Status and Blocks
12pass Consistency: Unwanted Blocks Are Errors
13pass Block with Bare Assignments
14FAIL Block param binding
details
15FAIL Proc that doesn't take a block
details
12 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

osh6 block literal in expression mode: ^(echo $PWD)

[osh stdout] Expected 'one\ntwo\n', got "(Str) 'TODO: value.Block'\n(Str) 'TODO: value.Block'\n"

stdout:
(Str)   'TODO: value.Block'
(Str)   'TODO: value.Block'
stderr:
osh7 block arg as typed expression

[osh stdout] Expected '/tmp\n/tmp\n', got '/tmp\n'
[osh status] Expected 0, got 2

stdout:
/tmp
stderr:
  cd /tmp (myblock)
          ^
[ stdin ]:6: 'cd' Expected block argument
  cd /tmp (myblock)
  ^~
[ stdin ]:6: errexit PID 5562: Command failed with status 2
osh14 Block param binding

[osh status] Expected 0, got 1

stdout:
stderr: 
    = b
      ^
[ stdin ]:4: fatal: Undefined variable 'b'
osh15 Proc that doesn't take a block

[osh stdout] Expected 'status=1\n', got 'task name=foo\nstatus=0\n'

stdout:
task name=foo
status=0
stderr: