| status | osh | osh-cpp | |
| pass | 13 | 13 | |
| ok | 1 | 1 | |
| FAIL | 2 | 2 | |
| total | 16 | 16 | |
| case | osh | osh-cpp | description |
| 0 | pass | pass | kill -15 kills the process with SIGTERM |
| 1 | pass | pass | kill -KILL kills the process with SIGKILL |
| 2 | pass | pass | kill -n 9 specifies the signal number |
| 3 | pass | pass | kill -s TERM specifies the signal name |
| 4 | pass | pass | kill -terM -SigterM isn't case sensitive |
| 5 | ok | ok | kill HUP pid gives the correct error |
| details | details | ||
| 6 | pass | pass | kill -l shows signals |
| 7 | pass | pass | kill -L also shows signals |
| 8 | pass | pass | kill -l 10 TERM translates between names and numbers |
| 9 | FAIL | FAIL | kill -L checks for invalid input |
| details | details | ||
| 10 | pass | pass | kill -9999 is an invalid signal |
| 11 | FAIL | FAIL | kill -15 %% kills current job |
| details | details | ||
| 12 | pass | pass | kill -15 %- kills previous job |
| 13 | pass | pass | kill multiple pids at once |
| 14 | pass | pass | kill pid and job at once |
| 15 | pass | pass | Numeric signal out of range - OSH may send it anyway |
26 passed, 2 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
| osh | 5 kill HUP pid gives the correct error stdout: 2stderr: builtin kill HUP $pid
^~~
[ stdin ]:3: 'kill' got invalid process ID 'HUP'
|
| osh-cpp | 5 kill HUP pid gives the correct error stdout: 2stderr: builtin kill HUP $pid
^~~
[ stdin ]:3: 'kill' got invalid process ID 'HUP'
|
| osh | 9 kill -L checks for invalid input [osh stdout] Expected 'USR1\nUSR2\nstatus=1\n\n10\n12\nstatus=1\n\n' Got 'USR1\nstatus=2\n\n10\nstatus=2\n\n' stdout: USR1 status=2 10 status=2stderr: builtin kill -L 10 BAD 12
^~~
[ stdin ]:3: 'kill' can't translate name 'BAD' to a number
builtin kill -L USR1 9999 USR2
^~~~
[ stdin ]:7: 'kill' can't translate number '9999' to a name
|
| osh-cpp | 9 kill -L checks for invalid input [osh-cpp stdout] Expected 'USR1\nUSR2\nstatus=1\n\n10\n12\nstatus=1\n\n' Got 'USR1\nstatus=2\n\n10\nstatus=2\n\n' stdout: USR1 status=2 10 status=2stderr: builtin kill -L 10 BAD 12
^~~
[ stdin ]:3: 'kill' can't translate name 'BAD' to a number
builtin kill -L USR1 9999 USR2
^~~~
[ stdin ]:7: 'kill' can't translate number '9999' to a name
|
| osh | 11 kill -15 %% kills current job [osh stdout] Expected 'kill=0\nwait=143\nwait=127\n' Got 'kill=0\nwait=143\nwait=2\n' stdout: kill=0 wait=143 wait=2stderr: Terminated (core dumped)
wait %%
^
[ stdin ]:9: 'wait' expected PID or jobspec, got '%%'
|
| osh-cpp | 11 kill -15 %% kills current job [osh-cpp stdout] Expected 'kill=0\nwait=143\nwait=127\n' Got 'kill=0\nwait=143\nwait=2\n' stdout: kill=0 wait=143 wait=2stderr: wait %%
^
[ stdin ]:9: 'wait' expected PID or jobspec, got '%%'
|