]> granicus.if.org Git - strace/commit
tests: fix sigaction.test on sparc
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 16 Aug 2017 16:25:03 +0000 (16:25 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 16 Aug 2017 16:25:03 +0000 (16:25 +0000)
commit06c4151a490e628270ef0bbf9846e7b955752e58
tree7fb26c26b218317137338607d9db71ee84adfd44
parent239418b7f8456f8a118cb3fc7df3c6c1e6cd3ecf
tests: fix sigaction.test on sparc

On sparc, the first argument of old sigaction syscall has negated
semantics, compared to other architectures.  While sigaction.test
was aware about this arch-specific detail from the beginning, in one
of many sigaction syscall invocations a non-negative signal number
was erroneously passed on sparc.

* tests/sigaction.c (ADDR_INT, SIGNO_INT): New arch-specific macros.
(signo, addr): Use them.
tests/sigaction.c