Results for builtin-kill.test.sh

statusdashbashmkshosh
pass 416713
ok 1001
N-I 9050
BUG 2040
FAIL 0002
total16161616
casedashbashmkshoshdescription
0pass pass BUG pass kill -15 kills the process with SIGTERM
details
1pass pass pass pass kill -KILL kills the process with SIGKILL
2N-I pass N-I pass kill -n 9 specifies the signal number
detailsdetails
3pass pass BUG pass kill -s TERM specifies the signal name
details
4N-I pass N-I pass kill -terM -SigterM isn't case sensitive
detailsdetails
5N-I pass pass ok kill HUP pid gives the correct error
detailsdetails
6N-I pass pass pass kill -l shows signals
details
7N-I pass N-I pass kill -L also shows signals
detailsdetails
8N-I pass N-I pass kill -l 10 TERM translates between names and numbers
detailsdetails
9N-I pass N-I FAIL kill -L checks for invalid input
detailsdetailsdetails
10N-I pass pass pass kill -9999 is an invalid signal
details
11N-I pass BUG FAIL kill -15 %% kills current job
detailsdetailsdetails
12BUG pass BUG pass kill -15 %- kills previous job
detailsdetails
13pass pass pass pass kill multiple pids at once
14BUG pass pass pass kill pid and job at once
details
15ok pass pass pass Numeric signal out of range - OSH may send it anyway
details
40 passed, 2 OK, 14 not implemented, 6 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

mksh0 kill -15 kills the process with SIGTERM

stdout:
stderr: 
dash2 kill -n 9 specifies the signal number

stdout:
kill=2
wait=0
stderr:
dash: 3: kill: Illegal option -n
mksh2 kill -n 9 specifies the signal number

stdout:
kill=1
wait=0
stderr:
mksh: <stdin>[3]: kill: -n: unknown option
mksh3 kill -s TERM specifies the signal name

stdout:
kill=0
wait=0
stderr:
dash4 kill -terM -SigterM isn't case sensitive

stdout:
stderr: 
mksh4 kill -terM -SigterM isn't case sensitive

stdout:
stderr: 
dash5 kill HUP pid gives the correct error

stdout:
stderr: 
osh5 kill HUP pid gives the correct error

stdout:
2
stderr:
  builtin kill HUP $pid
               ^~~
[ stdin ]:3: 'kill' got invalid process ID 'HUP'
dash6 kill -l shows signals

stdout:
stderr: 
dash7 kill -L also shows signals

stdout:
stderr: 
mksh7 kill -L also shows signals

stdout:
stderr: 
dash8 kill -l 10 TERM translates between names and numbers

stdout:
stderr: 
mksh8 kill -l 10 TERM translates between names and numbers

stdout:
stderr: 
dash9 kill -L checks for invalid input

stdout:
stderr: 
mksh9 kill -L checks for invalid input

stdout:
stderr: 
osh9 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=2

stderr:
  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
dash10 kill -9999 is an invalid signal

stdout:
stderr: 
dash11 kill -15 %% kills current job

stdout:
kill=1
wait=0
wait=0
stderr:
dash: 3: kill: No such process

mksh11 kill -15 %% kills current job

stdout:
kill=0
wait=0
wait=127
stderr:
osh11 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=2
stderr:
  wait %%
       ^
[ stdin ]:9: 'wait' expected PID or jobspec, got '%%'
dash12 kill -15 %- kills previous job

stdout:
kill=1
wait=0
stderr:
dash: 4: kill: No such process

mksh12 kill -15 %- kills previous job

stdout:
kill=0
wait=0
stderr:
dash14 kill pid and job at once

stdout:
1
stderr:
dash: 4: kill: No such process

dash15 Numeric signal out of range - OSH may send it anyway

stdout:
kill=2
wait=0
stderr:
dash: 4: kill: invalid signal number or name: 9999