summaryrefslogtreecommitdiff
path: root/internal/generate/codegen_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-30 17:20:30 +0300
committerPaul Buetow <paul@buetow.org>2026-05-30 17:20:30 +0300
commitcf0fc43651cb6bbf71d8f18a530c177dc7f717dd (patch)
tree12f30c90aaf2e571bd4911b1a493ec49c8ef260c /internal/generate/codegen_test.go
parent8b64d566300b7e952da63e11cba7575d7b06e7e2 (diff)
test(generate): lock in pwrite64 WRITE_CLASSIFIED audit
Add TestClassifyPwrite64WriteByteCount pinning the pwrite64(2) audit: fd at args[0] (KindFd), FS family, and WRITE_CLASSIFIED return (the syscall returns the number of bytes written). Asserts pread64 stays READ_CLASSIFIED as the read-side positional contrast, guards against transfer/unclassified misclassification, and checks the write/pread sibling group so a stray reclassification trips the test. No implementation changes: classify.go, family.go, generated C/Go, and docs/syscall-tracing-plan.md were already consistent and correct. 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