Results for exit-status.test.sh

statusoshosh-cpp
pass 85
FAIL 14
total99
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 FAIL If subshell true
details
6pass FAIL If subshell true WITH OUTPUT is different
details
7pass FAIL If subshell true WITH ARGUMENT
details
8FAIL FAIL If subshell false -- exit code is propagated in a weird way (strict_argv prevents)
detailsdetails
13 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh-cpp5 If subshell true

[osh-cpp stdout] Expected 'TRUE\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp6 If subshell true WITH OUTPUT is different

[osh-cpp stdout] Expected 'FALSE\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp7 If subshell true WITH ARGUMENT

[osh-cpp stdout] Expected 'FALSE\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh8 If subshell false -- exit code is propagated in a weird way (strict_argv prevents)

[osh stdout] Expected 'FALSE\n', got 'TRUE\n'

stdout:
TRUE
stderr:
osh-cpp8 If subshell false -- exit code is propagated in a weird way (strict_argv prevents)

[osh-cpp stdout] Expected 'FALSE\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core