summaryrefslogtreecommitdiff
path: root/internal/generate/codegen_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-30 16:53:10 +0300
committerPaul Buetow <paul@buetow.org>2026-05-30 16:53:10 +0300
commit2e018ccde462cd9083cfaf9e74c50cec19518815 (patch)
tree4c0f0cc8a7664a63a7159c78a15161d294e71f77 /internal/generate/codegen_test.go
parent7f0ef4c1b2a2fa7945d70cf2f76475e25a766abd (diff)
test(kill): lock in KindNull enter and UNCLASSIFIED ret
Audit of kill(2) (pid_t pid, int sig): the pid at args[0] is a process/ process-group identifier and sig a signal number, neither an fd nor a path, so the enter tracepoint is KindNull and the int 0/-1 return is a status code (UNCLASSIFIED), not a transferred byte count. Classification and docs (Signals/null) already matched and need no change. Add TestClassifyExitKillUnclassifiedRet (the return-value lock-in its signal siblings tkill/tgkill/rt_sigqueueinfo already have) and harden TestClassifyKillExplicitNull to assert no PathnameField is captured, documenting the deliberate contrast with pidfd_send_signal (KindFd/IPC, args[0] is a real pidfd). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'internal/generate/codegen_test.go')
0 files changed, 0 insertions, 0 deletions