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, Mar 20, 10:46 PM
Unknown Object (File)
Wed, Mar 5, 10:21 PM
Unknown Object (File)
Feb 20 2025, 3:58 AM
Unknown Object (File)
Feb 8 2025, 6:43 PM
Unknown Object (File)
Feb 6 2025, 5:06 PM
Unknown Object (File)
Jan 29 2025, 1:12 AM
Unknown Object (File)
Jan 17 2025, 10:12 PM
Unknown Object (File)
Jan 15 2025, 9:30 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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable