zsh-workers
 help / color / mirror / code / Atom feed
69d4388c72c8d385632a6acdc64b6fdc8b54d729 blob 1387 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
 
# Tests for the kill builtin.

%test

# Correct invocation

  if zmodload zsh/system &>/dev/null; then
    (
      trap 'exit 19' TERM
      kill $sysparams[pid]
    )
  else
    print -u $ZTST_fd 'Cannot zmodload zsh/system, skipping kill with no sigspec'
  fi
19:kill with no sigspec


  if zmodload zsh/system &>/dev/null; then
    (
      trap 'exit 11' USR1
      kill -USR1 $sysparams[pid]
    )
  else
    print -u $ZTST_fd 'Cannot zmodload zsh/system, skipping kill with sigspec'
  fi
11:kill with sigspec

# Incorrect invocation

  (
  kill a b c
  )
3:kill with multiple wrong inputs should increment status
?(eval):kill:2: illegal pid: a
?(eval):kill:2: illegal pid: b
?(eval):kill:2: illegal pid: c

  (
  kill -INT a b c
  )
3:kill with sigspec and wrong inputs should increment status
?(eval):kill:2: illegal pid: a
?(eval):kill:2: illegal pid: b
?(eval):kill:2: illegal pid: c

  kill
1:kill with no arguments
?(eval):kill:1: not enough arguments

  kill -INT
1:kill with sigspec only
?(eval):kill:1: not enough arguments

# Regression tests: `kill ''` should not result in `kill 0`.

  trap 'exit 19' TERM
  kill ''
1:Plain kill with empty pid should not send signal to current process group
?(eval):kill:2: illegal pid: 

  trap 'exit 11' INT
  kill -INT ''
1:kill with empty pid and sigspec should not send signal to current process group
?(eval):kill:2: illegal pid: 
debug log:

solving 69d4388c7 ...
found 69d4388c7 in https://inbox.vuxu.org/zsh-workers/aa611722f5b347dade24dc9e12aba06932e470e6.1581812420.git.chris@chrisdown.name/
found 6a548213b in https://inbox.vuxu.org/zsh-workers/e65ea745a197e445818a2c5192af51f829f75f8e.1581812420.git.chris@chrisdown.name/

applying [1/2] https://inbox.vuxu.org/zsh-workers/e65ea745a197e445818a2c5192af51f829f75f8e.1581812420.git.chris@chrisdown.name/
diff --git a/Test/B11kill.ztst b/Test/B11kill.ztst
new file mode 100644
index 000000000..6a548213b


applying [2/2] https://inbox.vuxu.org/zsh-workers/aa611722f5b347dade24dc9e12aba06932e470e6.1581812420.git.chris@chrisdown.name/
diff --git a/Test/B11kill.ztst b/Test/B11kill.ztst
index 6a548213b..69d4388c7 100644

Checking patch Test/B11kill.ztst...
Applied patch Test/B11kill.ztst cleanly.
1:74: trailing whitespace.
?(eval):kill:2: illegal pid: 
1:79: trailing whitespace.
?(eval):kill:2: illegal pid: 
Checking patch Test/B11kill.ztst...
Applied patch Test/B11kill.ztst cleanly.
warning: 2 lines add whitespace errors.

index at:
100644 69d4388c72c8d385632a6acdc64b6fdc8b54d729	Test/B11kill.ztst

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).