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)
Dec 10 2024, 11:17 PM
Unknown Object (File)
Dec 1 2024, 12:24 PM
Unknown Object (File)
Nov 20 2024, 9:00 AM
Unknown Object (File)
Nov 18 2024, 3:46 PM
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
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