Results for exit-status.test.sh

statusoshosh_.pyosh_.cc
pass 440
FAIL 115
total555
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL If empty command
details
1pass pass FAIL If subshell true
details
2pass pass FAIL If subshell true WITH OUTPUT is different
details
3pass pass FAIL If subshell true WITH ARGUMENT
details
4FAIL FAIL FAIL If subshell false -- exit code is propagated in a weird way (strict_argv prevents)
detailsdetailsdetails
8 passed, 0 OK, 0 not implemented, 0 BUG, 7 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh_.cc0 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 = 1866
	gNumDelete = 137
	gMemPos = 64256

	gNumMalloc = 80
	gNumFree = 0
	gMemPos2 = 9696

dumb_alloc:
	gNumNew = 1858
	gNumDelete = 135
	gMemPos = 63984

	gNumMalloc = 75
	gNumFree = 0
	gMemPos2 = 9616
osh_.cc1 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:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc2 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:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh_.cc3 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:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.
osh4 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_.py4 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_.cc4 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:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed.