50 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
osh-cpp | 0 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-cpp | 1 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: zerostderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |
osh-cpp | 3 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=134stderr: 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-cpp | 10 strict_errexit and errexit disabled [osh-cpp stdout] Expected 'before\nx=\n', got 'before\n' [osh-cpp status] Expected 0, got -6 stdout: beforestderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |
osh-cpp | 11 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: zerostderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |
osh-cpp | 12 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-cpp | 13 command sub with inherit_errexit and command_sub_errexit [osh-cpp status] Expected 1, got -6 stdout: zerostderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |
osh-cpp | 14 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-cpp | 15 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-cpp | 16 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-cpp | 17 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: goodstderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |
osh-cpp | 18 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: goodstderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |
osh-cpp | 19 local and inherit_errexit / command_sub_errexit [osh-cpp status] Expected 1, got -6 stdout: goodstderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |
osh-cpp | 20 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-cpp | 27 command sub errexit preserves exit code [osh-cpp status] Expected 42, got -6 stdout: beforestderr: terminate called after throwing an instance of 'IndexError*' timeout: the monitored command dumped core |
osh-cpp | 29 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-cpp | 30 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-cpp | 31 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-cpp | 32 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-cpp | 34 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 |