Results for exit-status.test.sh

statusoshosh_.pyosh_.cc
pass 881
FAIL 118
total999
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL Truncating 'exit' status
details
1pass pass pass Truncating 'return' status
2pass pass FAIL subshell OverflowError https://github.com/oilshell/oil/issues/996
details
3pass pass FAIL func subshell OverflowError https://github.com/oilshell/oil/issues/996
details
4pass pass FAIL If empty command
details
5pass pass FAIL If subshell true
details
6pass pass FAIL If subshell true WITH OUTPUT is different
details
7pass pass FAIL If subshell true WITH ARGUMENT
details
8FAIL FAIL FAIL If subshell false -- exit code is propagated in a weird way (strict_argv prevents)
detailsdetailsdetails
17 passed, 0 OK, 0 not implemented, 0 BUG, 10 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh_.cc0 Truncating 'exit' status

[osh_.cc stdout] Expected 'status=255\nstatus=0\nstatus=1\n===\nstatus=255\nstatus=254\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/pylib_path_stat.h:10: bool path_stat::exists(Str*): Assertion `0' failed.
osh_.cc2 subshell OverflowError https://github.com/oilshell/oil/issues/996

[osh_.cc stdout] Expected 'status=255\nstatus=0\nstatus=1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed.
osh_.cc3 func subshell OverflowError https://github.com/oilshell/oil/issues/996

[osh_.cc stdout] Expected 'status=255\nstatus=0\nstatus=1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:111: void posix::dup2(int, int): Assertion `0' failed.
osh_.cc4 If empty command

[osh_.cc stdout] Expected 'FALSE\n', got 'FALSE\nTRUE\n'

stdout:
FALSE
TRUE
stderr:
osh: PID -1 stopped, but osh didn't start it

dumb_alloc:
	gNumNew = 1945
	gNumDelete = 139
	gMemPos = 67024

	gNumMalloc = 81
	gNumFree = 0
	gMemPos2 = 9872

dumb_alloc:
	gNumNew = 1937
	gNumDelete = 137
	gMemPos = 66752

	gNumMalloc = 76
	gNumFree = 0
	gMemPos2 = 9792
osh_.cc5 If subshell true

[osh_.cc stdout] Expected 'TRUE\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc6 If subshell true WITH OUTPUT is different

[osh_.cc stdout] Expected 'FALSE\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc7 If subshell true WITH ARGUMENT

[osh_.cc stdout] Expected 'FALSE\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
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_.py8 If subshell false -- exit code is propagated in a weird way (strict_argv prevents)

[osh_.py stdout] Expected 'FALSE\n', got 'TRUE\n'

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

[osh_.cc stdout] Expected 'FALSE\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.opt: cpp/posix.h:74: Tuple2<int, int> posix::pipe(): Assertion `0' failed.