diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-21 21:08:23 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-21 21:08:23 +0200 |
| commit | 70ccf3c69fec44833b15d93be754f1fadd25614c (patch) | |
| tree | 3341c28498600a2d18cfdea1ab8abfddb0be52fd /integrationtests/fcntl_test.go | |
| parent | 44a5deb87bef82fe88a40bbeac634d841709b290 (diff) | |
Add negative integration tests for dup syscalls
Add three negative test scenarios for dup syscalls:
- dup-invalid-fd: dup on invalid fd 99999 (EBADF)
- dup2-same-fd: dup2(fd, fd) no-op case (POSIX documented behavior)
- dup3-invalid-flags: dup3 with 0xBAD flags (EINVAL)
All verify ior captures the tracepoint even when the syscall fails,
since BPF reads arguments on syscall entry before execution.
Task: 348
Amp-Thread-ID: https://ampcode.com/threads/T-019c8196-6186-7054-a4e5-640fce69e493
Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'integrationtests/fcntl_test.go')
0 files changed, 0 insertions, 0 deletions
