Results for builtin-kill.test.sh

statusdashbashmkshosh
pass 620817
ok 1001
N-I 11080
BUG 2040
FAIL 0002
total20202020
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
10pass pass pass pass kill -l with exit code
11pass pass N-I pass kill -l with 128 is invalid
details
12N-I pass N-I pass kill -l 0 returns EXIT
detailsdetails
13N-I pass N-I pass kill -l 0 INT lists both signals
detailsdetails
14N-I pass pass pass kill -9999 is an invalid signal
details
15N-I pass BUG FAIL kill -15 %% kills current job
detailsdetailsdetails
16BUG pass BUG pass kill -15 %- kills previous job
detailsdetails
17pass pass pass pass kill multiple pids at once
18BUG pass pass pass kill pid and job at once
details
19ok pass pass pass Numeric signal out of range - OSH may send it anyway
details
51 passed, 2 OK, 19 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
mksh11 kill -l with 128 is invalid

stdout:
128
stderr:
dash12 kill -l 0 returns EXIT

stdout:
stderr: 
dash: 1: kill: invalid signal number or exit status: 0
mksh12 kill -l 0 returns EXIT

stdout:
0
stderr:
dash13 kill -l 0 INT lists both signals

stdout:
stderr: 
dash: 1: kill: invalid signal number or exit status: 0
mksh13 kill -l 0 INT lists both signals

stdout:
0
stderr:
mksh: <stdin>[1]: kill: INT: bad number
dash14 kill -9999 is an invalid signal

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

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

mksh15 kill -15 %% kills current job

stdout:
kill=0
wait=0
wait=127
stderr:
osh15 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 '%%'
dash16 kill -15 %- kills previous job

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

mksh16 kill -15 %- kills previous job

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

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

dash19 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