diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-30 16:27:20 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-30 16:27:20 +0300 |
| commit | 0f470e8e63d9cb458c711ade594e18acd8791504 (patch) | |
| tree | ad4ec784cbe5611dff5ed4ae8f3bb44efb6c6fa8 /internal/generate/classify_test.go | |
| parent | 65d276b67e65427e8cd25fd45b142e6fff1259f0 (diff) | |
test(select): lock in nfds/timeval capture and UNCLASSIFIED exit
Audit of syscall select confirmed the tracing is already correct:
select is KindPoll/FamilyPolling like poll/ppoll/pselect6, the enter
handler captures nfds from args[0] as a count (not as an fd) and the
timeout from the args[4] timeval, and the exit is an UNCLASSIFIED
ret_event (ready-fd count, not a byte transfer).
Add TestGenerateSelectHandlerCapturesNfdsAndTimevalTimeout mirroring the
ppoll lock-in test, with negative assertions that no argument is ever
captured as an fd and that the exit carries no bytes/fd fields. This
guards against regressing nfds (a count) into a KindFd fd capture.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'internal/generate/classify_test.go')
0 files changed, 0 insertions, 0 deletions
