ParseSignal: drop add'l check for numeric signals

The kernel will return an error anyway.

Drop the test case as well.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2020-03-17 09:28:11 -07:00
parent 5ebd0e5d0f
commit 5ef66e48f2
2 changed files with 1 additions and 6 deletions

View File

@@ -31,7 +31,6 @@ func TestParseSignal(t *testing.T) {
{"1", syscall.Signal(1), false},
{"SIGKILL", syscall.SIGKILL, false},
{"NONEXIST", 0, true},
{"65536", 0, true},
}
for _, ts := range testSignals {
t.Run(fmt.Sprintf("%s/%d/%t", ts.raw, ts.want, ts.err), func(t *testing.T) {