diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-06 09:25:20 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-06 09:25:20 +0300 |
| commit | 00ea2b26510c225977609620800c1989c4fefd8a (patch) | |
| tree | 8c18a0a196aea49c801a40e6516e0a4bc1d6f0e2 /go.mod | |
| parent | 178ca1f256b1e345cad2f506b6b244fb50d8d281 (diff) | |
test(priority): add end-to-end coverage for getpriority/setpriority
getpriority/setpriority (FamilyProcess, KindNull enter, UNCLASSIFIED ret)
were untested end-to-end: no ioworkload scenario invoked them. Add a safe,
unprivileged, non-disruptive priority-basic scenario that reads the current
nice value via getpriority(PRIO_PROCESS, 0) and re-applies that exact value
via setpriority(PRIO_PROCESS, 0, currentNice) — a byte-for-byte no-op,
mirroring the existing schedRoundtripAffinity round-trip. Note getpriority
returns 20-nice, so the value is converted back before re-applying.
Register the scenario in scenarios.go and add TestPriorityBasic, which
asserts enter_getpriority and enter_setpriority appear as null_event enters
attributed to the ioworkload process. Enter-tracepoint presence is the right
check given KindNull/UNCLASSIFIED (no fd/path/bytes to assert). Coverage
only — classification verified correct in audits 6u and pz.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions
