Page MenuHomeFreeBSD

tests/sys/audit: fix timeout calculation
ClosedPublic

Authored by arichardson on Jan 28 2021, 9:46 AM.
Tags
None
Referenced Files
F150813474: D28391.id.diff
Sat, Apr 4, 5:44 AM
Unknown Object (File)
Fri, Apr 3, 6:30 AM
Unknown Object (File)
Tue, Mar 24, 2:15 AM
Unknown Object (File)
Tue, Mar 17, 1:34 AM
Unknown Object (File)
Sat, Mar 14, 4:38 AM
Unknown Object (File)
Sun, Mar 8, 9:00 PM
Unknown Object (File)
Mar 4 2026, 9:08 PM
Unknown Object (File)
Jan 1 2026, 3:04 PM
Subscribers
None

Details

Summary

This changes the behaviour to a 30s total timeout (needed when running
on slow emulated uniprocessor systems) and timing out after 10s without
any input.
This also uses timespecsub() instead of ignoring the nanoseconds field.

Test Plan

Runs more reliably on QEMU and times out less regularly

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36564
Build 33453: arc lint + arc unit