Results for oil-blocks.test.sh

statusoshosh_ALT
pass 1212
FAIL 44
total1616
caseoshosh_ALTdescription
0pass pass cd with block
1pass pass cd with block: fatal error in block
2pass pass cd with block: return in block
3pass pass cd with block: break in block
4pass pass cd with block exits with status 0
5pass pass block doesn't have its own scope
6FAIL FAIL block literal in expression mode: ^(echo $PWD)
detailsdetails
7FAIL FAIL block arg as typed expression
detailsdetails
8pass pass Pass invalid typed args
9pass pass 'builtin' and 'command' with block
10pass pass Consistency: Control Flow and Blocks
11pass pass Consistency: Exit Status and Blocks
12pass pass Consistency: Unwanted Blocks Are Errors
13pass pass Block with Bare Assignments
14FAIL FAIL Block param binding
detailsdetails
15FAIL FAIL Proc that doesn't take a block
detailsdetails
24 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:
osh_ALT6 block literal in expression mode: ^(echo $PWD)

[osh_ALT 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 12841: Command failed with status 2
osh_ALT7 block arg as typed expression

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

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

[osh status] Expected 0, got 1

stdout:
stderr: 
    = b
      ^
[ stdin ]:4: fatal: Undefined variable 'b'
osh_ALT14 Block param binding

[osh_ALT 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:
osh_ALT15 Proc that doesn't take a block

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

stdout:
task name=foo
status=0
stderr: