This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit ecabd4a356f83df3d0660fbb429b4d982a580384 Author: Marco Casaroli <[email protected]> AuthorDate: Fri Nov 27 09:04:33 2026 +0100 testing/ostest: Do not expect a blocked SIGKILL or SIGSTOP in sighand. wakeup_action() checked that the signal mask in the handler is the full set, SIGKILL and SIGSTOP included. POSIX says that SIGKILL and SIGSTOP cannot be blocked, so they are not part of the mask of a handler. Leave SIGKILL and SIGSTOP out of both sets before the compare. The case then checks the mask of a handler as POSIX defines it. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- testing/ostest/sighand.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/testing/ostest/sighand.c b/testing/ostest/sighand.c index 13e26c41b..b9184432a 100644 --- a/testing/ostest/sighand.c +++ b/testing/ostest/sighand.c @@ -115,7 +115,9 @@ static void wakeup_action(int signo, siginfo_t *info, void *ucontext) ASSERT(false); } - /* Check sigprocmask */ + /* Check sigprocmask. SIGKILL and SIGSTOP cannot be blocked (POSIX), so + * they are not part of the mask: do not compare them. + */ sigfillset(&allsigs); status = sigprocmask(SIG_SETMASK, NULL, &oldset); @@ -124,6 +126,11 @@ static void wakeup_action(int signo, siginfo_t *info, void *ucontext) ASSERT(false); } + sigdelset(&allsigs, SIGKILL); + sigdelset(&allsigs, SIGSTOP); + sigdelset(&oldset, SIGKILL); + sigdelset(&oldset, SIGSTOP); + if (!sigset_isequal(&oldset, &allsigs)) { ASSERT(false);
