Page MenuHomeFreeBSD

tests/sys/audit: fix timeout calculation
ClosedPublic

Authored by arichardson on Jan 28 2021, 9:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 2 2024, 6:17 PM
Unknown Object (File)
Oct 2 2024, 12:39 PM
Unknown Object (File)
Oct 2 2024, 10:09 AM
Unknown Object (File)
Oct 2 2024, 5:14 AM
Unknown Object (File)
Oct 1 2024, 6:11 AM
Unknown Object (File)
Oct 1 2024, 3:06 AM
Unknown Object (File)
Sep 30 2024, 8:37 PM
Unknown Object (File)
Sep 30 2024, 6:22 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