Results for errexit-osh.test.sh

statusoshosh-cpp
pass 3515
FAIL 020
total3535
caseoshosh-cppdescription
0pass FAIL command sub: errexit is NOT inherited and outer shell keeps going
details
1pass FAIL command sub with inherit_errexit only
details
2pass pass strict_errexit and assignment builtins (local, export, readonly ...)
3pass FAIL strict_errexit and command sub in export / readonly
details
4pass pass strict_errexit disallows pipeline
5pass pass strict_errexit allows singleton pipeline
6pass pass strict_errexit with && || !
7pass pass strict_errexit detects proc in && || !
8pass pass strict_errexit without errexit proc
9pass pass strict_errexit without errexit proc / command sub
10pass FAIL strict_errexit and errexit disabled
details
11pass FAIL command sub with command_sub_errexit only
details
12pass FAIL command_sub_errexit stops at first error
details
13pass FAIL command sub with inherit_errexit and command_sub_errexit
details
14pass FAIL command sub: last command fails but keeps going and exit code is 0
details
15pass FAIL global assignment with command sub: middle command fails
details
16pass FAIL global assignment with command sub: last command fails and it aborts
details
17pass FAIL local: middle command fails and keeps going
details
18pass FAIL local: last command fails and also keeps going
details
19pass FAIL local and inherit_errexit / command_sub_errexit
details
20pass FAIL global assignment when last status is failure
details
21pass pass strict_errexit prevents errexit from being disabled in function
22pass pass strict_errexit prevents errexit from being disabled in brace group
23pass pass strict_errexit prevents errexit from being disabled in subshell
24pass pass strict_errexit and ! && || if while until
25pass pass if pipeline doesn't fail fatally
26pass pass errexit is silent (verbose_errexit for Oil)
27pass FAIL command sub errexit preserves exit code
details
28pass pass What's in strict:all?
29pass FAIL command_sub_errexit causes local d=$(date %x) to fail
details
30pass FAIL command_sub_errexit and command sub in array
details
31pass FAIL OLD: command sub in conditional, with inherit_errexit
details
32pass FAIL OLD: command sub in redirect in conditional
details
33pass pass Regression
34pass FAIL ShAssignment used as conditional
details
50 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp0 command sub: errexit is NOT inherited and outer shell keeps going

[osh-cpp stdout] Expected 'one two\nparent status=0\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-cpp1 command sub with inherit_errexit only

[osh-cpp stdout] Expected 'zero\none\nparent status=0\n', got 'zero\n'
[osh-cpp status] Expected 0, got -6

stdout:
zero
stderr:
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp3 strict_errexit and command sub in export / readonly

[osh-cpp stdout] Expected 'a\nstatus=1\na\nstatus=1\na\nb\nstatus=0\n', got 'a\nstatus=1\na\nstatus=1\na\nstatus=134\n'

stdout:
a
status=1
a
status=1
a
status=134
stderr:
  echo a; export x=$(might-fail); echo b
                   ^~
[ -c flag ]:1: fatal: Command subs not allowed here because status wouldn't be checked (strict_errexit)
  echo a; readonly x=$(might-fail); echo b
                     ^~
[ -c flag ]:1: fatal: Command subs not allowed here because status wouldn't be checked (strict_errexit)
terminate called after throwing an instance of 'IndexError*'
osh-cpp10 strict_errexit and errexit disabled

[osh-cpp stdout] Expected 'before\nx=\n', got 'before\n'
[osh-cpp status] Expected 0, got -6

stdout:
before
stderr:
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp11 command sub with command_sub_errexit only

[osh-cpp stdout] Expected 'zero\none two\nparent status=0\n', got 'zero\n'
[osh-cpp status] Expected 0, got -6

stdout:
zero
stderr:
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp12 command_sub_errexit stops at first error

[osh-cpp stdout] Expected 'OK\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-cpp13 command sub with inherit_errexit and command_sub_errexit

[osh-cpp status] Expected 1, got -6

stdout:
zero
stderr:
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp14 command sub: last command fails but keeps going and exit code is 0

[osh-cpp stdout] Expected 'one\nstatus=0\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-cpp15 global assignment with command sub: middle command fails

[osh-cpp stdout] Expected 'one\ntwo\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-cpp16 global assignment with command sub: last command fails and it aborts

[osh-cpp status] Expected 1, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp17 local: middle command fails and keeps going

[osh-cpp stdout] Expected 'good\nstatus=0\none two\n', got 'good\n'
[osh-cpp status] Expected 0, got -6

stdout:
good
stderr:
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp18 local: last command fails and also keeps going

[osh-cpp stdout] Expected 'good\nstatus=0\none\n', got 'good\n'
[osh-cpp status] Expected 0, got -6

stdout:
good
stderr:
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp19 local and inherit_errexit / command_sub_errexit

[osh-cpp status] Expected 1, got -6

stdout:
good
stderr:
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp20 global assignment when last status is failure

[osh-cpp stdout] Expected 'status=0\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-cpp27 command sub errexit preserves exit code

[osh-cpp status] Expected 42, got -6

stdout:
before
stderr:
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp29 command_sub_errexit causes local d=$(date %x) to fail

[osh-cpp status] Expected 1, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp30 command_sub_errexit and command sub in array

[osh-cpp status] Expected 1, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp31 OLD: command sub in conditional, with inherit_errexit

[osh-cpp stdout] Expected '1 2\nA\ndone\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-cpp32 OLD: command sub in redirect in conditional

[osh-cpp stdout] Expected '2\ntmp_contents\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-cpp34 ShAssignment used as conditional

[osh-cpp stdout] Expected 'yes\nyes\n', got ''
[osh-cpp status] Expected 1, got -6

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