Results for ysh-blocks.test.sh

statusoshosh-cpp
pass 1615
FAIL 01
total1616
caseoshosh-cppdescription
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
6pass pass block literal in expression mode: ^(echo $PWD)
7pass pass block arg as typed expression
8pass pass Pass invalid typed args
9pass pass Pass too many typed args
10pass pass 'builtin' and 'command' with block
11pass pass Consistency: Control Flow and Blocks
12pass pass Consistency: Exit Status and Blocks
13pass FAIL Consistency: Unwanted Blocks Are Errors
details
14pass pass Block with Bare Assignments
15pass pass Proc that doesn't take a block
31 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp13 Consistency: Unwanted Blocks Are Errors

[osh-cpp stdout] Expected 'true 2\nfalse 2\necho block 2\necho args 2\ncommand echo 2\nbuiltin echo 2\npushd 2\n' Got 'true 2\nfalse 2\n\necho block 0\n\necho args 0\ncommand block\ncommand echo 0\nbuiltin block\nbuiltin echo 0\n/home/andy/git/oilshell/oil/_tmp/spec-tmp/ysh-blocks.test.sh.10283/13-osh-cpp /home/andy/git/oilshell/oil/_tmp/spec-tmp/ysh-blocks.test.sh.10283/13-osh-cpp\npushd 0\n'

stdout:
true 2
false 2

echo block 0

echo args 0
command block
command echo 0
builtin block
builtin echo 0
/home/andy/git/oilshell/oil/_tmp/spec-tmp/ysh-blocks.test.sh.10283/13-osh-cpp /home/andy/git/oilshell/oil/_tmp/spec-tmp/ysh-blocks.test.sh.10283/13-osh-cpp
pushd 0
stderr:
  true { echo BAD }
       ^
[ stdin ]:3: 'true' got unexpected typed args
  false ( 42, 43 )
        ^
[ stdin ]:6: 'false' got unexpected typed args