Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
39555 committed Oct 25, 2024
1 parent 971f2ca commit eac7655
Showing 1 changed file with 3 additions and 33 deletions.
36 changes: 3 additions & 33 deletions brush-shell/tests/cases/builtins/kill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,9 @@ name: "Builtins: kill"
cases:
- name: "kill -l"
ignore_stderr: true
# note that we dont use 'kill -l' because of the shape of the bash list
# 1) .. 2) .. 3) .. etc. instead of just a simple list
stdin: |
# kill -l
kill -l 1
kill -l 2
kill -l 3
kill -l 4
kill -l 5
kill -l 6
kill -l 7
kill -l 9
kill -l 10
kill -l 11
kill -l 12
kill -l 13
kill -l 14
kill -l 15
kill -l 16
kill -l 17
kill -l 18
kill -l 19
kill -l 20
kill -l 21
kill -l 22
kill -l 23
kill -l 24
kill -l 25
kill -l 26
kill -l 27
kill -l 28
kill -l 29
kill -l 30
kill -l 31
for i in $(seq 1 31); do kill -l $i; done
for i in $(kill -l | sed -e "s/[[:digit:]]*)//g"); do echo $i; done
# invalid option
kill -l 9999
kill -l HUP
Expand All @@ -44,3 +13,4 @@ cases:
kill -l SIGHUP
kill -l EXIT

0 comments on commit eac7655

Please sign in to comment.