Results for errexit.test.sh

statusdashbashmkshashosh
pass 2526282527
N-I 10010
BUG 22020
FAIL 00001
total2828282828
casedashbashmkshashoshdescription
0pass pass pass pass pass errexit aborts early
1pass pass pass pass pass errexit for nonexistent command
2pass pass pass pass pass errexit aborts early on pipeline
3pass pass pass pass pass errexit with { }
4pass pass pass pass pass errexit with if and { }
5pass pass pass pass pass errexit with ||
6pass pass pass pass pass errexit with &&
7pass pass pass pass pass errexit test && -- from gen-module-init
8pass pass pass pass pass errexit test && and fail
9pass pass pass pass pass errexit and loop
10pass pass pass pass pass errexit and brace group { }
11pass pass pass pass pass errexit and time { }
12pass pass pass pass pass errexit with !
13pass pass pass pass pass errexit with ! and ;
14pass pass pass pass pass errexit with while/until
15N-I pass pass N-I pass errexit with (( ))
detailsdetails
16pass pass pass pass pass errexit with subshell
17pass pass pass pass pass set -o errexit while it's being ignored (moot with strict_errexit)
18pass pass pass pass pass set +o errexit while it's being ignored (moot with strict_errexit)
19pass pass pass pass pass setting errexit in a subshell works but doesn't affect parent shell
20pass pass pass pass pass set errexit while it's ignored in a subshell (moot with strict_errexit)
21pass pass pass pass pass shopt -s strict:all || true while errexit is on
22pass pass pass pass pass errexit double guard
23pass pass pass pass pass background processes respect errexit
24pass pass pass pass pass pipeline process respects errexit
25BUG BUG pass BUG pass compound command
detailsdetailsdetails
26BUG BUG pass BUG pass while loop
detailsdetailsdetails
27pass pass pass pass FAIL set -e enabled in function (regression)
details
131 passed, 0 OK, 2 not implemented, 6 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

dash15 errexit with (( ))

stdout:
stderr: 
dash: 3: i++: not found
ash15 errexit with (( ))

stdout:
stderr: 
ash: i++: not found
dash25 compound command

stdout:
status=2
should not get here
stderr:
dash: 2: cannot open not_exist.txt: No such file
bash25 compound command

stdout:
status=1
should not get here
stderr:
bash: line 2: not_exist.txt: No such file or directory
ash25 compound command

stdout:
status=1
should not get here
stderr:
ash: can't open not_exist.txt: no such file
dash26 while loop

stdout:
status=2
should not get here
stderr:
dash: 2: cannot open not_exist.txt: No such file
bash26 while loop

stdout:
status=1
should not get here
stderr:
bash: line 4: not_exist.txt: No such file or directory
ash26 while loop

stdout:
status=1
should not get here
stderr:
ash: can't open not_exist.txt: no such file
osh27 set -e enabled in function (regression)

[osh stdout] Expected 'should be executed\nshould be executed\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
    false
    ^~~~~
[ stdin ]:4: fatal: Exiting with status 1 (command in PID 1821)