]> git.ipfire.org Git - thirdparty/util-linux.git/commit
ts/kill/decode: consider arch dependent signum/name association
authorMasatake YAMATO <yamato@redhat.com>
Fri, 10 Oct 2025 20:41:25 +0000 (05:41 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Fri, 10 Oct 2025 21:19:39 +0000 (06:19 +0900)
commiteb06b44b11acc8260cbe9cbbff390b51eb6053b9
tree7f54396d59669e79dae699f2d5c1e2b8366d4cfd
parentdb0efab5c3e13794ae79fcb3db8371e3af510169
ts/kill/decode: consider arch dependent signum/name association

In the original code, the signal bits passed to the decode test were
sampled on x86_64. As reported in #3774, the association between signal
number and its name is architecture dependent.

With this change, the test case calculates the signal bits from signal
names at runtime instead of hardcoding.

Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://github.com/util-linux/util-linux/issues/3774
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/expected/kill/decode
tests/ts/kill/decode