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, Nov 27, 6:44 AM
Unknown Object (File)
Tue, Nov 25, 5:23 PM
Unknown Object (File)
Mon, Nov 24, 6:17 PM
Unknown Object (File)
Sun, Nov 9, 3:47 AM
Unknown Object (File)
Nov 4 2025, 1:11 PM
Unknown Object (File)
Nov 4 2025, 1:08 PM
Unknown Object (File)
Nov 4 2025, 1:08 PM
Unknown Object (File)
Nov 4 2025, 1:06 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