Results for exit-status.test.sh

statusoshosh-cpp
pass 119
FAIL 02
total1111
caseoshosh-cppdescription
0pass pass Truncating 'exit' status
1pass pass Truncating 'return' status
2pass pass subshell OverflowError https://github.com/oilshell/oil/issues/996
3pass pass func subshell OverflowError https://github.com/oilshell/oil/issues/996
4pass pass If empty command
5pass pass If subshell true
6pass pass If subshell true WITH OUTPUT is different
7pass pass If subshell true WITH ARGUMENT
8pass pass If subshell false -- exit code is propagated in a weird way (strict_argv prevents)
9pass FAIL Exit code when command sub evaluates to empty str, e.g. `false` (#2416)
details
10pass FAIL More test cases with empty argv
details
20 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp9 Exit code when command sub evaluates to empty str, e.g. `false` (#2416)

[osh-cpp stdout] Expected '0\n1\n0\n1\n---\n0\n1\n0\n1\n' Got '0\n1\n'
[osh-cpp status] Expected 0 Got 2

stdout:
0
1
stderr:
  $(true); echo $?
        ^
[ stdin ]:3: Invalid word while parsing command list
osh-cpp10 More test cases with empty argv

[osh-cpp stdout] Expected 'status=0\nstatus=42\nstatus=43\n' Got ''
[osh-cpp status] Expected 0 Got 2

stdout:
stderr: 
  true $(false)
              ^
[ stdin ]:1: Invalid word while parsing command list