tests: simplify invalid signal determination for kill -l
commit4c7d82f1f11a3e122befccde505a1dc4519a22e7
authorPádraig Brady <P@draigBrady.com>
Thu, 14 Jan 2016 14:21:53 +0000 (14 14:21 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 15 Jan 2016 14:14:06 +0000 (15 14:14 +0000)
tree5f3b7ef35f3d86b5c291c2a2ee05f9f3456b4137
parentb955a4fb6d503aa49242ea7d3addf528ae4bbe73
tests: simplify invalid signal determination for kill -l

* src/operand2sig.c (operand2sig): Add a detailed comment explaining
why we validate even very large shell exit status values.
* tests/misc/kill.sh: Add a test case for the ksh scheme.
Simplify the INVALID signal number determination which also avoids
a false failure on systems like FreeBSD 10 with incomplete
signal list (caused by inaccurate NSIG).
src/operand2sig.c
tests/misc/kill.sh