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)
Thu, Apr 4, 8:48 PM
Unknown Object (File)
Thu, Mar 28, 10:15 AM
Unknown Object (File)
Mar 7 2024, 12:03 PM
Unknown Object (File)
Jan 16 2024, 7:05 PM
Unknown Object (File)
Dec 23 2023, 3:22 AM
Unknown Object (File)
Dec 20 2023, 5:29 AM
Unknown Object (File)
Nov 13 2023, 1:35 AM
Unknown Object (File)
Sep 20 2023, 6:16 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